summaryrefslogtreecommitdiff
path: root/drumgizmo/enginefactory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/enginefactory.cc')
-rw-r--r--drumgizmo/enginefactory.cc13
1 files changed, 10 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")
{