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 e6e70c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vorbis/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6e70c7

Please sign in to comment.