diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-11-01 01:55:22 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-01 01:55:22 -0300 |
commit | 281d6fac1edd4a5b06692b850c00db6a5a9bbb46 (patch) | |
tree | 37a1ae9c85545c45032410006df65e697f3ccd6a /servers | |
parent | bd736e5af2ec5113c23fef58523f57a0b2e11fb2 (diff) |
-some fixes to audio
Diffstat (limited to 'servers')
-rw-r--r-- | servers/audio/audio_rb_resampler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servers/audio/audio_rb_resampler.h b/servers/audio/audio_rb_resampler.h index 3c686374f4..3c08c79797 100644 --- a/servers/audio/audio_rb_resampler.h +++ b/servers/audio/audio_rb_resampler.h @@ -67,6 +67,11 @@ public: return todo; } + + _FORCE_INLINE_ bool has_data() const { + return rb && rb_read_pos!=rb_write_pos; + } + _FORCE_INLINE_ int16_t *get_write_buffer() { return read_buf; } _FORCE_INLINE_ void write(uint32_t p_frames) { |