Skip to content

Commit

Permalink
Add fallthroughs to vorbis.Decoder.Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkKremer committed Sep 5, 2024
1 parent 6bb4a2a commit 5d3f400
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vorbis/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d3f400

Please sign in to comment.