2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Fix stream channel count when outputting to stereo

This commit is contained in:
David Marcec 2020-07-25 13:31:43 +10:00
parent b924c71822
commit f4eb7dceaf

View file

@ -208,7 +208,7 @@ void AudioRenderer::QueueMixedBuffer(Buffer::Tag tag) {
} else if (channel_count == 2) { } else if (channel_count == 2) {
const auto l_sample = ClampToS16(mix_buffers[0][i]); const auto l_sample = ClampToS16(mix_buffers[0][i]);
const auto r_sample = ClampToS16(mix_buffers[1][i]); const auto r_sample = ClampToS16(mix_buffers[1][i]);
if (stream_channel_count == 0) { if (stream_channel_count == 1) {
buffer[i * stream_channel_count + 0] = l_sample; buffer[i * stream_channel_count + 0] = l_sample;
} else if (stream_channel_count == 2) { } else if (stream_channel_count == 2) {
buffer[i * stream_channel_count + 0] = l_sample; buffer[i * stream_channel_count + 0] = l_sample;