Commit 395ebf8b authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

jri: speed improvement on peak level find in portaudio run (~35%)

parent 788f35a0
......@@ -266,7 +266,7 @@ if playback
if verboseMode==2, ita_metainfo_show_channelnames(data); end;
%% Check levels - Normalizing
peak_value = max(abs(data.timeData(:)));
peak_value = max(max(abs(data.timeData)));
if (peak_value > 1) || (normalize_output)
ita_verbose_info('Oh Lord! Levels too high for playback. Normalizing...',0)
data = ita_normalize_dat(data); %PDI: bugfix, there was no 'data =' on the left handside
......
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