summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_renderer.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-07-25 05:31:43 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-07-25 05:31:43 +0200
commitf4eb7dceaff25ae5037bd7ec77de143f5d4a85a0 (patch)
treed62b9b1ef8155d8a31fc7d0753bd9debf10e98aa /src/audio_core/audio_renderer.cpp
parentAddress issues (diff)
downloadyuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.tar
yuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.tar.gz
yuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.tar.bz2
yuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.tar.lz
yuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.tar.xz
yuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.tar.zst
yuzu-f4eb7dceaff25ae5037bd7ec77de143f5d4a85a0.zip
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) {
} else if (channel_count == 2) {
const auto l_sample = ClampToS16(mix_buffers[0][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;
} else if (stream_channel_count == 2) {
buffer[i * stream_channel_count + 0] = l_sample;