Browse Source

Update servers/audio/audio_rb_resampler.h

Co-authored-by: K. S. Ernest (iFire) Lee <[email protected]>
Bernat 6 months ago
parent
commit
5b67dda1ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      servers/audio/audio_rb_resampler.h

+ 1 - 1
servers/audio/audio_rb_resampler.h

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