From 3b5f1afb5cc82cf8417b1fe94774e04e238a9488 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. --- 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 3c08c797975..2f589c4a0f2 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{