diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-11-06 08:03:56 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-11-06 08:03:56 +0100 |
commit | 36630b0fa3d29c54a666d3bb00a2fac804fa7df9 (patch) | |
tree | f0eab974b1dc9453f402d7020410077e841dbd72 /drumgizmo/audiooutputenginedl.cc | |
parent | fe8907b7dd31a4acbde211df929092e0f1014d06 (diff) |
Make cli output modules work with new samplerate() design.
Diffstat (limited to 'drumgizmo/audiooutputenginedl.cc')
-rw-r--r-- | drumgizmo/audiooutputenginedl.cc | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/drumgizmo/audiooutputenginedl.cc b/drumgizmo/audiooutputenginedl.cc index fcedd9d..2648e8f 100644 --- a/drumgizmo/audiooutputenginedl.cc +++ b/drumgizmo/audiooutputenginedl.cc @@ -114,7 +114,8 @@ AudioOutputEngineDL::AudioOutputEngineDL(std::string name) o_samplerate = (output_samplerate_func_t) dlsym(lib, "samplerate"); dlsym_error = dlerror(); if(dlsym_error) { - o_samplerate = NULL; + printf("Cannot load symbol samplerate: %s\n", dlsym_error); + return; } ptr = o_create(); @@ -190,22 +191,5 @@ size_t AudioOutputEngineDL::getBufferSize() size_t AudioOutputEngineDL::samplerate() { if(o_samplerate) return o_samplerate(ptr); - return UNKNOWN_SAMPLERATE; + return 44100; } - -#ifdef TEST_AUDIOOUTPUTENGINEDL -//Additional dependency files -//deps: -//Required cflags (autoconf vars may be used) -//cflags: -//Required link options (autoconf vars may be used) -//libs: -#include "test.h" - -TEST_BEGIN; - -// TODO: Put some testcode here (see test.h for usable macros). - -TEST_END; - -#endif/*TEST_AUDIOOUTPUTENGINEDL*/ |