summaryrefslogtreecommitdiff
path: root/src/audiooutputengine.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:33:17 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:33:17 +0100
commitcdbae7738c35268fd9a208be0618c4ea11475935 (patch)
tree60acd18fcf988d5bfa31559520816aa0735b6e6c /src/audiooutputengine.h
parentf58c2e7aee2e392bdeea68abea960db0178b0a98 (diff)
New config interface (xml). Instruments now contains pointers (fix memleak).
Diffstat (limited to 'src/audiooutputengine.h')
-rw-r--r--src/audiooutputengine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audiooutputengine.h b/src/audiooutputengine.h
index 864ecc5..d2d2310 100644
--- a/src/audiooutputengine.h
+++ b/src/audiooutputengine.h
@@ -45,6 +45,9 @@ public:
virtual void pre(size_t nsamples) = 0;
virtual void run(int ch, sample_t *samples, size_t nsamples) = 0;
virtual void post(size_t nsamples) = 0;
+
+ // Reimplement this if you wish to use internal buffer directly.
+ virtual sample_t *getBuffer(int ch) { return NULL; }
};
#endif/*__DRUMGIZMO_AUDIOOUTPUTENGINE_H__*/