summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2016-03-23 17:05:00 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2016-03-23 17:05:00 +0100
commitbdd35c258a3ef2bae8632787e3110c3bc7e21b8f (patch)
treec5a3aac5863c41667cbf7f68df95a6b3ab5aa97f
parente52892418239c02aef92ebd55213dd6e9d0fbcc0 (diff)
Added test input to enginefactory. The remaning lines.
-rw-r--r--drumgizmo/enginefactory.cc13
-rw-r--r--drumgizmo/enginefactory.h4
2 files changed, 14 insertions, 3 deletions
diff --git a/drumgizmo/enginefactory.cc b/drumgizmo/enginefactory.cc
index 36c79c5..98db4b6 100644
--- a/drumgizmo/enginefactory.cc
+++ b/drumgizmo/enginefactory.cc
@@ -43,12 +43,13 @@ EngineFactory::EngineFactory()
#ifdef HAVE_INPUT_MIDIFILE
input.push_back("midifile");
#endif
-#ifdef HAVE_INPUT_JACKMIDI
- input.push_back("jackmidi");
-#endif
#ifdef HAVE_INPUT_TEST
input.push_back("test");
#endif
+#ifdef HAVE_INPUT_JACKMIDI
+ input.push_back("jackmidi");
+#endif
+
// list available output engines
#ifdef HAVE_OUTPUT_DUMMY
@@ -99,6 +100,12 @@ std::unique_ptr<AudioInputEngine> EngineFactory::createInput(const std::string&
return std::make_unique<MidifileInputEngine>();
}
#endif
+#ifdef HAVE_INPUT_TEST
+ if(name == "test")
+ {
+ return std::make_unique<TestInputEngine>();
+ }
+#endif
#ifdef HAVE_INPUT_JACKMIDI
if(name == "jackmidi")
{
diff --git a/drumgizmo/enginefactory.h b/drumgizmo/enginefactory.h
index d792fc9..4bc16b5 100644
--- a/drumgizmo/enginefactory.h
+++ b/drumgizmo/enginefactory.h
@@ -45,6 +45,10 @@
#include "input/midifile.h"
#endif
+#ifdef HAVE_INPUT_TEST
+#include "input/test.h"
+#endif
+
#ifdef HAVE_INPUT_JACKMIDI
#include "input/jackmidi.h"
#endif