summaryrefslogtreecommitdiff
path: root/drumgizmo/enginefactory.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2016-04-03 13:22:29 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2016-04-03 13:23:08 +0200
commit915efdcda8f5c26e1f173bd0f52cbc59aa337a03 (patch)
tree2d8719a5b351e71d0a426d155967d1c402b0f00a /drumgizmo/enginefactory.cc
parentc7aae008ad818f9cb453ce184673e0edf8ba4e58 (diff)
Added TestInputEngine available in cli.
Diffstat (limited to 'drumgizmo/enginefactory.cc')
-rw-r--r--drumgizmo/enginefactory.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/drumgizmo/enginefactory.cc b/drumgizmo/enginefactory.cc
index d3e08c6..d013ef9 100644
--- a/drumgizmo/enginefactory.cc
+++ b/drumgizmo/enginefactory.cc
@@ -40,6 +40,9 @@ EngineFactory::EngineFactory()
#ifdef HAVE_INPUT_DUMMY
input.push_back("inputdummy");
#endif
+#ifdef HAVE_INPUT_TEST
+ input.push_back("test");
+#endif
#ifdef HAVE_INPUT_MIDIFILE
input.push_back("midifile");
#endif
@@ -90,6 +93,12 @@ std::unique_ptr<AudioInputEngine> EngineFactory::createInput(const std::string&
return std::make_unique<DummyInputEngine>();
}
#endif
+#ifdef HAVE_INPUT_TEST
+ if(name == "test")
+ {
+ return std::make_unique<TestInputEngine>();
+ }
+#endif
#ifdef HAVE_INPUT_MIDIFILE
if(name == "midifile")
{