summaryrefslogtreecommitdiff
path: root/drumgizmo/audiooutputenginedl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/audiooutputenginedl.cc')
-rw-r--r--drumgizmo/audiooutputenginedl.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/drumgizmo/audiooutputenginedl.cc b/drumgizmo/audiooutputenginedl.cc
index ad8d815..513d21b 100644
--- a/drumgizmo/audiooutputenginedl.cc
+++ b/drumgizmo/audiooutputenginedl.cc
@@ -105,6 +105,12 @@ AudioOutputEngineDL::AudioOutputEngineDL(std::string name)
return;
}
+ o_bufsize = (output_bufsize_func_t) dlsym(lib, "bufsize");
+ dlsym_error = dlerror();
+ if(dlsym_error) {
+ o_bufsize = NULL;
+ }
+
ptr = o_create();
if(is_jack_plugin) {
@@ -169,6 +175,12 @@ void AudioOutputEngineDL::post(size_t size)
return o_post(ptr, size);
}
+size_t AudioOutputEngineDL::getBufferSize()
+{
+ if(o_bufsize) return o_bufsize(ptr);
+ return 1024;
+}
+
#ifdef TEST_AUDIOOUTPUTENGINEDL
//Additional dependency files
//deps: