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
parent
acb1dd75d3
commit
08da31f96c
|
@ -135,12 +135,11 @@ static void downmix_to_stereo(const float *inBuffer, int channels, uint32_t conf
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
outBuffer[i * 2 + 0] = left;
|
outBuffer[i * 2 + 0] = left;
|
||||||
outBuffer[i * 2 + 1] = right;
|
outBuffer[i * 2 + 1] = right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void downmix_to_mono(const float *inBuffer, int channels, uint32_t config, float *outBuffer, size_t count) {
|
static void downmix_to_mono(const float *inBuffer, int channels, uint32_t config, float *outBuffer, size_t count) {
|
||||||
float tempBuffer[count * 2];
|
float tempBuffer[count * 2];
|
||||||
|
|
Loading…
Reference in New Issue