diff options
author | Volker Fischer <corrados@users.noreply.github.com> | 2021-02-09 20:32:10 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-02-09 20:32:10 +0100 |
commit | 3dd3c332414bfbebd69bfd71a4a3198198525eb6 (patch) | |
tree | 9dff61eab647703581c80b1e1b276571586696d7 /drumgizmo/enginefactory.cc | |
parent | 9310ffe5959ce4de02204b6cd251d4b4a58c69b9 (diff) |
Add ALSA midi input support.
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 c93607e..6d267c3 100644 --- a/drumgizmo/enginefactory.cc +++ b/drumgizmo/enginefactory.cc @@ -49,6 +49,9 @@ EngineFactory::EngineFactory() #ifdef HAVE_INPUT_JACKMIDI input.push_back("jackmidi"); #endif +#ifdef HAVE_INPUT_ALSAMIDI + input.push_back("alsamidi"); +#endif #ifdef HAVE_INPUT_OSS input.push_back("oss"); #endif @@ -118,6 +121,12 @@ std::unique_ptr<AudioInputEngine> EngineFactory::createInput(const std::string& return std::make_unique<JackMidiInputEngine>(*jack); } #endif +#ifdef HAVE_INPUT_ALSAMIDI + if(name == "alsamidi") + { + return std::make_unique<AlsaMidiInputEngine>(); + } +#endif #ifdef HAVE_INPUT_OSSMIDI if(name == "ossmidi") { |