From 5d3f400a965c6fa66d37e2a267057d6d4daf86d4 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vorbis/decode.go b/vorbis/decode.go index cb0c5dc..a9a9fd7 100644 --- a/vorbis/decode.go +++ b/vorbis/decode.go @@ -67,13 +67,18 @@ 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: default: leftChannelIndex = 0