summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-11-01 01:55:22 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-11-01 01:55:22 -0300
commit281d6fac1edd4a5b06692b850c00db6a5a9bbb46 (patch)
tree37a1ae9c85545c45032410006df65e697f3ccd6a /servers
parentbd736e5af2ec5113c23fef58523f57a0b2e11fb2 (diff)
-some fixes to audio
Diffstat (limited to 'servers')
-rw-r--r--servers/audio/audio_rb_resampler.h5
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) {