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

WIP

parent 7de4ddff
......@@ -77,7 +77,7 @@ disp( [ 'Simulation result duration: ' num2str( N * frame_rate ) ' s' ] )
h = waitbar( 0, 'Hold on, running auralization' );
% Iterate over frames
n_continue = 1509;
n_continue = 1538;
for n = n_continue:N
% Load propagation paths for current frame
......@@ -135,10 +135,10 @@ for n = n_continue:N
pu.ID = ID;
%pu.path = strcat( 'direct_', num2str(S), '_to_', num2str(R) ); %sound path ID
[frequency_mags, gain, delay] = ita_propagation_path_get_data( pp, f, c);
[ frequency_mags, gain, delay, valid_p ] = ita_propagation_path_get_data( pp, f, c);
if( delay == -1 ) %catch for error in ita_propagation_path_get_data
warning('Error in ita_propagation_path_get_data make sure source position is not inside the wedge');
if ~valid_p %catch for error in ita_propagation_path_get_data
warning( 'Error in ita_propagation_path_get_data, found invalid path ''%s'', skipping', pp.identifier );
continue
end
......
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