diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-17 20:36:59 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-17 20:38:10 -0300 |
commit | 3b5f1afb5cc82cf8417b1fe94774e04e238a9488 (patch) | |
tree | a4ae7d22a702c9bd7c9627486d1b8431d522ecca /servers/audio | |
parent | 7723579237706f08cc29b4b4b551c552ed5c0694 (diff) |
Fixed fractional offset not being reset in ringbuffer resamples, closes #4764
Probably fixes other streamplayer issues too.
Diffstat (limited to 'servers/audio')
-rw-r--r-- | servers/audio/audio_rb_resampler.h | 1 |
1 files changed, 1 insertions, 0 deletions
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{ |