Commit 038ff1eb authored by Jonas Stienen's avatar Jonas Stienen

Updating examples for itaVA usage, although new version v2017a is available,...

Updating examples for itaVA usage, although new version v2017a is available, the interface has not changed, hence the old itaVA is still valid.
parent 2100a56b
......@@ -22,7 +22,7 @@ va.setAudiofileSignalSourcePlaybackAction( X, 'play' )
va.setAudiofileSignalSourceIsLooping( X, true );
% Create a virtual sound source and set a position
S = va.createSoundSource( 'itaVA_Source', 'all' );
S = va.createSoundSource( 'itaVA_Source' );
va.setSoundSourcePosition( S, [0 1.7 -2] )
% Connect the signal source to the virtual sound source
......@@ -30,7 +30,7 @@ va.setSoundSourceSignalSource( S, X )
% Create a listener with a HRTF and position him
H = va.loadHRIRDataset( '$(DefaultHRIR)' );
L = va.createListener( 'itaVA_Listener', 'all', H );
L = va.createListener( 'itaVA_Listener', 'default', H );
va.setListenerPosition( L, [0 1.7 0] )
va.setListenerOrientationYPR( L, [0 0 0] ) % Default view is to -Z (OpenGL)
......
......@@ -2,7 +2,7 @@
% This assumes you already have set up a virtual scene without listener
% Create itaVA and connect
va = itaVA( 'localhost' );
va = itaVA( 'localhost' )
% Create a listener
L = va.createListener( 'itaVA_Tracked_Listener' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment