Commit 096bc409 authored by henryjandrew's avatar henryjandrew

Adding lock / unlock in VA update to trigger cluster update at the right time

parent 7e195730
......@@ -239,11 +239,15 @@ for n = 1:N
source_pos_OpenGL = ita_matlab2openGL( source_pos' );
receiver_pos_OpenGL = ita_matlab2openGL( receiver_pos' );
va.lock_update
% Update receiver (last anchor)
va.set_sound_source_position( S, source_pos_OpenGL );
va.set_sound_receiver_position( R, receiver_pos_OpenGL );
va.set_rendering_module_parameters( 'MyBinauralOutdoorNoise', paths_update );
va.unlock_update
% Increment core clock
manual_clock = manual_clock + frame_rate;
......
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