summaryrefslogtreecommitdiff
path: root/src/audio_core/audio_renderer.cpp
diff options
context:
space:
mode:
authorGravatar David Marcec2020-07-25 13:31:43 +1000
committerGravatar David Marcec2020-07-25 13:31:43 +1000
commitf4eb7dceaff25ae5037bd7ec77de143f5d4a85a0 (patch)
treed62b9b1ef8155d8a31fc7d0753bd9debf10e98aa /src/audio_core/audio_renderer.cpp
parentAddress issues (diff)
downloadyuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.tar.gz
yuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.tar.xz
yuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.zip
Fix stream channel count when outputting to stereo
Diffstat (limited to 'src/audio_core/audio_renderer.cpp')
-rw-r--r--src/audio_core/audio_renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp
index a7a23945f..a3ff819e1 100644
--- a/src/audio_core/audio_renderer.cpp
+++ b/src/audio_core/audio_renderer.cpp
@@ -208,7 +208,7 @@ void AudioRenderer::QueueMixedBuffer(Buffer::Tag tag) {
208 } else if (channel_count == 2) { 208 } else if (channel_count == 2) {
209 const auto l_sample = ClampToS16(mix_buffers[0][i]); 209 const auto l_sample = ClampToS16(mix_buffers[0][i]);
210 const auto r_sample = ClampToS16(mix_buffers[1][i]); 210 const auto r_sample = ClampToS16(mix_buffers[1][i]);
211 if (stream_channel_count == 0) { 211 if (stream_channel_count == 1) {
212 buffer[i * stream_channel_count + 0] = l_sample; 212 buffer[i * stream_channel_count + 0] = l_sample;
213 } else if (stream_channel_count == 2) { 213 } else if (stream_channel_count == 2) {
214 buffer[i * stream_channel_count + 0] = l_sample; 214 buffer[i * stream_channel_count + 0] = l_sample;