Commit e60c79b0 authored by David Reid's avatar David Reid

Another experimental optimization.

parent a641a80b
...@@ -2024,11 +2024,12 @@ MA_API ma_result ma_gainer_process_pcm_frames(ma_gainer* pGainer, void* pFramesO ...@@ -2024,11 +2024,12 @@ MA_API ma_result ma_gainer_process_pcm_frames(ma_gainer* pGainer, void* pFramesO
for (iFrame = 0; iFrame < frameCount; iFrame += 1) { for (iFrame = 0; iFrame < frameCount; iFrame += 1) {
for (iChannel = 0; iChannel < channelCount; iChannel += 1) { for (iChannel = 0; iChannel < channelCount; iChannel += 1) {
pFramesOutF32[0] = pFramesInF32[0] * ma_mix_f32_fast(pGainer->oldGains[iChannel], pGainer->newGains[iChannel], a); pFramesOutF32[iChannel] = pFramesInF32[iChannel] * ma_mix_f32_fast(pGainer->oldGains[iChannel], pGainer->newGains[iChannel], a);
pFramesOutF32 += 1;
pFramesInF32 += 1;
} }
pFramesOutF32 += channelCount;
pFramesInF32 += channelCount;
a += d; a += d;
if (a > 1) { if (a > 1) {
a = 1; a = 1;
......
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