Skip to content

Commit

Permalink
added fabsf in true peak measure
Browse files Browse the repository at this point in the history
  • Loading branch information
audionuma committed Apr 19, 2013
1 parent 1f1c5b7 commit 50db8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r128x/ExtAudioProcessor.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ OSStatus ExtAudioReader (CFStringRef audioFilePath,
{
for (int j = 0; j < nChannels; j++)
{
if (samples[(nChannels * i) + j] > maxTP)
maxTP = samples[(nChannels * i) + j];
if (fabsf(samples[(nChannels * i) + j]) > maxTP)
maxTP = fabsf(samples[(nChannels * i) + j]);
}
}
if (err != noErr && err != 'insz')
Expand Down

0 comments on commit 50db8cd

Please sign in to comment.