Skip to content

Commit 5b67dda

Browse files
berarmafire
andauthored
Update servers/audio/audio_rb_resampler.h
Co-authored-by: K. S. Ernest (iFire) Lee <[email protected]>
1 parent 00fb5c4 commit 5b67dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/audio/audio_rb_resampler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct AudioRBResampler {
8686
} else if (w < r) {
8787
space = r - w - 1;
8888
} else {
89-
space = rb_len - w + r - 1;
89+
space = (rb_len - w) + (r - 1);
9090
}
9191

9292
return space;

0 commit comments

Comments
 (0)