Cog Audio: Fix generic downmix to stereo

Code ordering was wrong, it was writing the output samples repeatedly
for each input speaker, now it will only write them once.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-07 04:17:53 -08:00
parent acb1dd75d3
commit 08da31f96c
1 changed files with 2 additions and 3 deletions

View File

@ -135,10 +135,9 @@ static void downmix_to_stereo(const float *inBuffer, int channels, uint32_t conf
default:
break;
}
outBuffer[i * 2 + 0] = left;
outBuffer[i * 2 + 1] = right;
}
outBuffer[i * 2 + 0] = left;
outBuffer[i * 2 + 1] = right;
}
}