Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VAMatlab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
VAMatlab
Commits
f452d430
Commit
f452d430
authored
Oct 19, 2016
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imrpoving behavior if VAMatlab executable not found
parent
d148207a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
19 deletions
+45
-19
matlab/itaVA.proto.m
matlab/itaVA.proto.m
+35
-18
matlab/itaVA_build.m
matlab/itaVA_build.m
+10
-1
No files found.
matlab/itaVA.proto.m
View file @
f452d430
classdef
itaVA
<
handle
%ITAVA Remote interface for VA real-time auralization servers
%ITAVA Remote network interface to VA (Virtual Acoustics), the real-time
%auralization software made by ITA.
%
% This class realizes a remote connection to a VA real-time
% auralization server and implements the full VA core interface
% in Matlab. This way you connect to an auralization server
% and control all of its features to perform a real-time
% auralization. In order to get understand to the concepts behind VA
% please refer to the VA documentation.
% in Matlab. You can connect to to the server
% and control all of its features to perform real-time
% auralization, including live tracking if available.
% In order to get understand to the concepts behind VA
% please refer to the VA documentation or have a look at the example scripts.
%
% Usage & examples:
% See also: itaVA_example_simple, itaVA_example_tracked_listener,
% itaVA_example_generic_path_renderer, itaVA_example_random_numbers
%
% Quick usage:
%
% - Create an interface and connect to the server running on the
% same computer (localhost)
%
% va = itaVA('localhost');
% va = itaVA;
% va.connect;
%
% If no error occurs, you can then use the interface to work with
% the VA server. Best practice is to reset it first:
%
% va.reset
% the VA server.
%
%
Then
you can call other methods. For instance create a sound
%
Now,
you can call other methods. For instance create a sound
% source:
%
% sourceID = va.createSoundSource(
'Virtual sound source'
)
% sourceID = va.createSoundSource(
'My Matlab virtual sound source'
)
%
% When everything is done, do not forget to close the connection.
% You can call disconnect on the instance or simply clear it:
%
% clear va
%
% - You can find more examples in the demo files
%
% Questions? Contact the author: Frank.Wefers@akustik.rwth-aachen.de
%
% Otherwise => Enjoy!
%
properties
(
Hidden
=
true
,
Access
=
private
)
handle
=
int32
(
0
);
% Connection handle
% Connection defaults
DEFAULT_SERVER_PORT
=
12340
;
end
methods
(
Static
)
function
[
ok
]
=
check_for_mex_file
()
% Checks if VAMatlab executable can be found.
if
~
exist
(
'VAMatlab'
,
'var'
)
disp
(
'Matlab binding for VA not complete (missing VAMatlab executable).'
)
ok
=
false
;
% file dialog
else
ok
=
true
;
end
end
function
[
version
]
=
getVersion
()
% Return the version of the VA Matlab interface
%
...
...
@@ -100,6 +113,10 @@ classdef itaVA < handle
% core = itaVA('localhost:12340');
%
if
~
check_for_mex_file
()
)
error
(
'Matlab binding for VA requires VAMatlab executable.'
);
end
if
(
nargin
>
0
)
this
.
connect
(
addressstring
)
end
...
...
matlab/itaVA_build.m
View file @
f452d430
...
...
@@ -14,7 +14,16 @@
% Clear everything first, so that no inconsistens
% class instances can exist (we have to use
clear
all
;
clear
all
if
exist
(
'VAMatlab'
,
'var'
)
warn
(
'VAMatlab already found at location "%s", are you sure to build itaVA against this executable? Will proceed now.'
,
which
(
'VAMatlab'
)
)
else
if
isdir
(
'../dist/win32-x64.vc12/bin'
)
addpath
(
'../dist/win32-x64.vc12/bin'
)
addpath
(
'../dist/win32-x64.vc12/lib'
)
end
end
% Uncomment the path you are building your matlab executable against. It is
% sufficient to execute this once for a matlab session. It is always recommended
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment