missing peak gain apply

This commit is contained in:
Charles J. Cliffe 2015-02-11 22:55:34 -05:00
parent c69d05010c
commit c221ee2216

View File

@ -104,7 +104,7 @@ static int audioCallback(void *outputBuffer, void *inputBuffer, unsigned int nBu
continue;
}
peak += srcmix->currentInput->peak;
peak += srcmix->currentInput->peak * srcmix->gain;
if (srcmix->currentInput->channels == 1) {
for (int i = 0; i < nBufferFrames; i++) {