From e6e70c7e03ec7cd4de1d9f7096f7e43c83bad3b1 Mon Sep 17 00:00:00 2001 From: Mark Kremer Date: Thu, 5 Sep 2024 17:08:48 +0200 Subject: [PATCH] Add fallthroughs to vorbis.Decoder.Stream --- vorbis/decode.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vorbis/decode.go b/vorbis/decode.go index cb0c5dc..2f25108 100644 --- a/vorbis/decode.go +++ b/vorbis/decode.go @@ -67,14 +67,20 @@ func (d *decoder) Stream(samples [][2]float64) (n int, ok bool) { leftChannelIndex = 0 rightChannelIndex = 0 case 2: + fallthrough case 4: leftChannelIndex = 0 rightChannelIndex = 1 case 3: + fallthrough case 5: + fallthrough case 6: + fallthrough case 7: + fallthrough case 8: + fallthrough default: leftChannelIndex = 0 rightChannelIndex = 2