浏览代码

Fixed fractional offset not being reset in ringbuffer resamples, closes #4764
Probably fixes other streamplayer issues too.

Juan Linietsky 9 年之前
父节点
当前提交
3b5f1afb5c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      servers/audio/audio_rb_resampler.h

+ 1 - 0
servers/audio/audio_rb_resampler.h

@@ -37,6 +37,7 @@ public:
 	_FORCE_INLINE_ void flush() {
 	_FORCE_INLINE_ void flush() {
 		rb_read_pos=0;
 		rb_read_pos=0;
 		rb_write_pos=0;
 		rb_write_pos=0;
+		offset=0;
 	}
 	}
 
 
 	_FORCE_INLINE_ bool is_ready() const{
 	_FORCE_INLINE_ bool is_ready() const{