Cleanup to previous commit.

This commit is contained in:
David Reid
2021-05-22 17:54:26 +10:00
parent 0724a58e12
commit 1a919c0590
+2 -5
View File
@@ -2017,10 +2017,7 @@ MA_API ma_result ma_gainer_process_pcm_frames(ma_gainer* pGainer, void* pFramesO
/* Slow path. Need to interpolate the gain for each channel individually. */
/* We can allow the input and output buffers to be null in which case we'll just update the internal timer. */
if (pFramesOut == NULL || pFramesIn == NULL) {
/* Fast path. Just update the internal timer. */
} else {
/* Slow path. Need to interpolate the gain for each channel individually. */
if (pFramesOut != NULL && pFramesIn != NULL) {
float a = (float)pGainer->t / pGainer->config.smoothTimeInFrames;
float d = 1.0f / pGainer->config.smoothTimeInFrames;
@@ -2034,9 +2031,9 @@ MA_API ma_result ma_gainer_process_pcm_frames(ma_gainer* pGainer, void* pFramesO
a = 1;
}
}
}
pGainer->t = ma_min(pGainer->t + frameCount, pGainer->config.smoothTimeInFrames);
}
#if 0
for (iFrame = 0; iFrame < frameCount; iFrame += 1) {