2
0
Эх сурвалжийг харах

Update servers/audio/audio_rb_resampler.h

Co-authored-by: K. S. Ernest (iFire) Lee <[email protected]>
Bernat 6 сар өмнө
parent
commit
5b67dda1ad

+ 1 - 1
servers/audio/audio_rb_resampler.h

@@ -86,7 +86,7 @@ public:
 		} else if (w < r) {
 			space = r - w - 1;
 		} else {
-			space = rb_len - w + r - 1;
+			space = (rb_len - w) + (r - 1);
 		}
 
 		return space;