summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEllen Poe <ellen@ellenhp.me>2022-01-04 07:51:07 -0800
committerGitHub <noreply@github.com>2022-01-04 07:51:07 -0800
commitcd91f91d40e5c8b3c7c452a7f31d898ef8d5297a (patch)
tree8be5c3e47eae7017c6ea3a9811b998bae79d017f
parent8db6fb18c9ce401ddd0a7312b0c8a99aca238cdb (diff)
parent51106a481cc8a60c288ace0321e85783c7c4e35c (diff)
Merge pull request #56375 from Cnidarias/ogg_missing_right_channel
Fix OGG Vorbis playback with more than one channel
-rw-r--r--modules/vorbis/audio_stream_ogg_vorbis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/vorbis/audio_stream_ogg_vorbis.cpp b/modules/vorbis/audio_stream_ogg_vorbis.cpp
index 50d5952637..049d816a5a 100644
--- a/modules/vorbis/audio_stream_ogg_vorbis.cpp
+++ b/modules/vorbis/audio_stream_ogg_vorbis.cpp
@@ -110,7 +110,7 @@ int AudioStreamPlaybackOGGVorbis::_mix_frames_vorbis(AudioFrame *p_buffer, int p
if (info.channels > 1) {
for (int frame = 0; frame < frames; frame++) {
p_buffer[frame].l = pcm[0][frame];
- p_buffer[frame].r = pcm[0][frame];
+ p_buffer[frame].r = pcm[1][frame];
}
} else {
for (int frame = 0; frame < frames; frame++) {