From 8df46cddcb8934e620b7708507091888e458864d Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 17 Jun 2016 20:36:59 -0300 Subject: [PATCH] Fixed fractional offset not being reset in ringbuffer resamples, closes #4764 Probably fixes other streamplayer issues too. (cherry picked from commit 3b5f1afb5cc82cf8417b1fe94774e04e238a9488) --- servers/audio/audio_rb_resampler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/audio/audio_rb_resampler.h b/servers/audio/audio_rb_resampler.h index 3c08c79797..2f589c4a0f 100644 --- a/servers/audio/audio_rb_resampler.h +++ b/servers/audio/audio_rb_resampler.h @@ -37,6 +37,7 @@ public: _FORCE_INLINE_ void flush() { rb_read_pos=0; rb_write_pos=0; + offset=0; } _FORCE_INLINE_ bool is_ready() const{