Aufgrund von Umarbeiten des s3 Storage wird es in GitLab, in nächster Zeit, mögliche Performance-Einbußen geben. Näheres dazu unter: https://maintenance.itc.rwth-aachen.de/ticket/status/messages/43/show_ticket/6670

VA_example_tracked_listener.m 598 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
%% VA tracked listener example code
% This assumes you already have set up a virtual scene without listener

% Create VA and connect
va = VA( 'localhost' );

% Create a sound receiver
L = va.create_sound_receiver( 'VA_Tracked_Listener' );

% OptiTrack tracker conneection and sound receiver updates
va.set_tracked_sound_receiver( L ) % For virtual scene / rendering
va.set_tracked_real_world_sound_receiver( L ) % For CTC reproductions
va.connect_tracker
pause( 12 ) % Observe how you can move the virtual sound receiver
va.disconnect_tracker

% Remove listener again
va.delete_sound_receiver( L )