summaryrefslogtreecommitdiff
path: root/drumgizmo/output/dummy/dummy.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-11-06 08:03:56 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2014-11-06 08:03:56 +0100
commit36630b0fa3d29c54a666d3bb00a2fac804fa7df9 (patch)
treef0eab974b1dc9453f402d7020410077e841dbd72 /drumgizmo/output/dummy/dummy.cc
parentfe8907b7dd31a4acbde211df929092e0f1014d06 (diff)
Make cli output modules work with new samplerate() design.
Diffstat (limited to 'drumgizmo/output/dummy/dummy.cc')
-rw-r--r--drumgizmo/output/dummy/dummy.cc30
1 files changed, 13 insertions, 17 deletions
diff --git a/drumgizmo/output/dummy/dummy.cc b/drumgizmo/output/dummy/dummy.cc
index cd210dc..e60f2b7 100644
--- a/drumgizmo/output/dummy/dummy.cc
+++ b/drumgizmo/output/dummy/dummy.cc
@@ -43,6 +43,8 @@ public:
void pre(size_t size);
void run(int channel, sample_t* data, size_t size);
void post(size_t size);
+
+ size_t samplerate();
};
Dummy::Dummy()
@@ -83,6 +85,11 @@ void Dummy::post(size_t size)
{
}
+size_t Dummy::samplerate()
+{
+ return 44100;
+}
+
extern "C" {
void *create()
{
@@ -136,21 +143,10 @@ extern "C" {
Dummy *dummy = (Dummy*)h;
dummy->post(size);
}
-}
-
-#ifdef TEST_AUDIOOUTPUTENGINEDUMMY
-//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_AUDIOOUTPUTENGINEDUMMY*/
+ size_t samplerate(void *h)
+ {
+ Dummy *dummy = (Dummy*)h;
+ return dummy->samplerate();
+ }
+}