diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-12 19:59:17 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-04-12 19:59:17 +0200 |
commit | aa8599e808008a14ac0f7d40f91dc2e05bd3bd0a (patch) | |
tree | b95e724eb81a407569c5a77a486e2aea3595fcd4 /drumgizmo/audiooutputenginedl.h | |
parent | 68247258548efd9db16b2542122a980a1ff9e03d (diff) |
Make engine ask output module for buffer size. Use this new feature to adapt internal buffers to buffer size reported by jack.
Diffstat (limited to 'drumgizmo/audiooutputenginedl.h')
-rw-r--r-- | drumgizmo/audiooutputenginedl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drumgizmo/audiooutputenginedl.h b/drumgizmo/audiooutputenginedl.h index 4b22131..471247e 100644 --- a/drumgizmo/audiooutputenginedl.h +++ b/drumgizmo/audiooutputenginedl.h @@ -45,6 +45,7 @@ typedef void (*output_setparm_func_t)(void*,const char*,const char*); typedef void (*output_pre_func_t)(void*, size_t); typedef void (*output_run_func_t)(void*,int,sample_t*,size_t); typedef void (*output_post_func_t)(void*, size_t); +typedef size_t (*output_bufsize_func_t)(void*); class AudioOutputEngineDL : public AudioOutputEngine { public: @@ -62,6 +63,8 @@ public: void run(int ch, sample_t *samples, size_t nsamples); void post(size_t nsamples); + size_t getBufferSize(); + private: void *ptr; output_create_func_t o_create; @@ -73,6 +76,7 @@ private: output_pre_func_t o_pre; output_run_func_t o_run; output_post_func_t o_post; + output_bufsize_func_t o_bufsize; bool is_jack_plugin; JackClient *jackclient; |