diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2016-04-14 13:34:26 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2016-04-14 13:34:26 +0200 |
commit | 91c9929d331a531fa4e2a541525568b3fb484598 (patch) | |
tree | f970c1e809ab49ebfceeacdf82c986904d986ac7 /drumgizmo/enginefactory.cc | |
parent | f0ccaeaec633a728240d7e8f3c339766694f90b2 (diff) | |
parent | 02b769ac6b71f3e25a49ccb22cd382f02116bcca (diff) |
Merge remote-tracking branch 'origin/suhr/cli_test_input'
Diffstat (limited to 'drumgizmo/enginefactory.cc')
-rw-r--r-- | drumgizmo/enginefactory.cc | 9 |
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") { |