diff options
Diffstat (limited to 'drumgizmo/enginefactory.cc')
-rw-r--r-- | drumgizmo/enginefactory.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drumgizmo/enginefactory.cc b/drumgizmo/enginefactory.cc index cb332ed..06f8141 100644 --- a/drumgizmo/enginefactory.cc +++ b/drumgizmo/enginefactory.cc @@ -26,6 +26,7 @@ */ #include <iostream> +#include "cpp11fix.h" // required for c++11 #include "enginefactory.h" EngineFactory::EngineFactory() @@ -42,6 +43,9 @@ EngineFactory::EngineFactory() #ifdef HAVE_INPUT_MIDIFILE input.push_back("midifile"); #endif +#ifdef HAVE_INPUT_JACKMIDI + input.push_back("jackmidi"); +#endif // list available output engines #ifdef HAVE_OUTPUT_DUMMY @@ -85,6 +89,12 @@ std::unique_ptr<AudioInputEngine> EngineFactory::createInput(std::string const & return std::make_unique<MidifileInputEngine>(); } #endif +#ifdef HAVE_INPUT_JACKMIDI + if (name == "jackmidi") { + prepareJack(); + return std::make_unique<JackMidiInputEngine>(*jack); + } +#endif // todo: add more engines @@ -111,7 +121,7 @@ std::unique_ptr<AudioOutputEngine> EngineFactory::createOutput(std::string const #ifdef HAVE_OUTPUT_JACKAUDIO if (name == "jackaudio") { prepareJack(); - return std::make_unique<JackaudioOutputEngine>(*jack); + return std::make_unique<JackAudioOutputEngine>(*jack); } #endif |