Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit c3fdb1c

Browse files
author
Jason Crawford
committed
Fix for empty buffers causing a panic
1 parent 7697f68 commit c3fdb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mixing/mixbuffer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (m *MixBuffer) ToRenderDataWithBufs(outBuffers [][]byte, samples int, bitsP
116116
out := outBuffers[onum]
117117
for i := 0; i < samples; i++ {
118118
for _, buf := range *m {
119-
if pos >= len(out) {
119+
for pos >= len(out) {
120120
onum++
121121
if onum > len(outBuffers) {
122122
return

0 commit comments

Comments
 (0)