summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/AudioBuffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/AudioBuffer.hpp')
-rw-r--r--src/libs/engine/AudioBuffer.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/engine/AudioBuffer.hpp b/src/libs/engine/AudioBuffer.hpp
index d0379895..de9fc4a6 100644
--- a/src/libs/engine/AudioBuffer.hpp
+++ b/src/libs/engine/AudioBuffer.hpp
@@ -46,6 +46,9 @@ public:
/** For driver use only!! */
void set_data(Sample* data);
+ inline void* raw_data() const
+ { return ((_joined_buf != NULL) ? _joined_buf->raw_data() : _data); }
+
inline Sample* data() const
{ return ((_joined_buf != NULL) ? _joined_buf->data() : _data); }