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>
This commit is contained in:
parent
acb1dd75d3
commit
08da31f96c
1 changed files with 2 additions and 3 deletions
|
@ -135,11 +135,10 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void downmix_to_mono(const float *inBuffer, int channels, uint32_t config, float *outBuffer, size_t count) {
|
||||
|
|
Loading…
Reference in a new issue