Commit 9ba72fa2 authored by David Reid's avatar David Reid

Fix a bug in ma_gainer.

parent 1c4fc274
......@@ -47963,7 +47963,7 @@ MA_API ma_result ma_gainer_process_pcm_frames(ma_gainer* pGainer, void* pFramesO
/* Now that some frames have been processed we need to make sure future changes to the gain are interpolated. */
if (pGainer->t == (ma_uint32)-1) {
pGainer->t = pGainer->config.smoothTimeInFrames;
pGainer->t = (ma_uint32)ma_min(pGainer->config.smoothTimeInFrames, frameCount);
}
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