diff options
author | Ellen Poe <ellen@ellenhp.me> | 2022-01-04 07:51:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 07:51:07 -0800 |
commit | cd91f91d40e5c8b3c7c452a7f31d898ef8d5297a (patch) | |
tree | 8be5c3e47eae7017c6ea3a9811b998bae79d017f /modules/vorbis | |
parent | 8db6fb18c9ce401ddd0a7312b0c8a99aca238cdb (diff) | |
parent | 51106a481cc8a60c288ace0321e85783c7c4e35c (diff) |
Merge pull request #56375 from Cnidarias/ogg_missing_right_channel
Fix OGG Vorbis playback with more than one channel
Diffstat (limited to 'modules/vorbis')
-rw-r--r-- | modules/vorbis/audio_stream_ogg_vorbis.cpp | 2 |
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++) { |