Skip to content

Commit

Permalink
Also don't clamp in ProcessThru, similar to mix functions
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Aug 27, 2019
1 parent e4cdb43 commit be37de4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/FAPOBase.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,6 @@ void FAPOBase_ProcessThru(
/* Add, don't overwrite! */
pOutputBuffer[i * OutputChannelCount + co] +=
input[i * InputChannelCount + ci];
pOutputBuffer[i * OutputChannelCount + co] = FAudio_clamp(
pOutputBuffer[i * OutputChannelCount + co],
-FAUDIO_MAX_VOLUME_LEVEL,
FAUDIO_MAX_VOLUME_LEVEL
);
}
}
else
Expand All @@ -378,11 +373,6 @@ void FAPOBase_ProcessThru(
/* Overwrite, don't add! */
pOutputBuffer[i * OutputChannelCount + co] =
input[i * InputChannelCount + ci];
pOutputBuffer[i * OutputChannelCount + co] = FAudio_clamp(
pOutputBuffer[i * OutputChannelCount + co],
-FAUDIO_MAX_VOLUME_LEVEL,
FAUDIO_MAX_VOLUME_LEVEL
);
}
}
}
Expand Down

0 comments on commit be37de4

Please sign in to comment.