Commit ff62d39e authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Applying some API changes in outdoor noise renderer

parent aa30fded
......@@ -27,7 +27,7 @@ H = va.create_directivity_from_file( 'ITA_Artificial_Head_5x5_44kHz_128.v17.ir.d
va.set_sound_receiver_directivity( L, H );
S = va.create_sound_source( 'VA_Source' );
%X = va.create_signal_source_buffer_from_file( 'musting_idle.wav' );
%X = va.create_signal_source_buffer_from_file( 'WelcomeToVA.wav' );
X = va.create_signal_source_buffer_from_file( 'Full song - Vulfpeck - Dean Town.wav' );
......@@ -72,8 +72,7 @@ for n = 1:length( x )
% Direct sound path (id 0)
prop_path_direct = struct();
prop_path_direct.ID = 0;
prop_path_direct.path = strcat( 'direct_', num2str(S), '_to_', num2str(L) ); %sound path ID
prop_path_direct.identifier = 'direct_path';
prop_path_direct.gain = 1/distance;
prop_path_direct.delay = distance / c; %delay from sound emitting from source to being received at listener
prop_path_direct.frequencies = f; %Frequencies corresponding to the mags
......@@ -108,8 +107,7 @@ for n = 1:length( x )
%prop_path_diffracted.frequency_magnitudes = values;
prop_path_diffracted.source = S;
prop_path_diffracted.receiver = L;
prop_path_diffracted.ID = 1;
prop_path_diffracted.path = strcat( 'diff1_', num2str(S), '_to_', num2str(L) );
prop_path_diffracted.identifier = 'diffracted_path';
prop_path_diffracted.delete = false;
prop_path_diffracted.position = apex;
prop_path_diffracted.audible = true;
......
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