diff options
author | Goran Mekić <meka@tilda.center> | 2017-05-21 11:28:12 +0200 |
---|---|---|
committer | Goran Mekić <meka@tilda.center> | 2017-12-30 15:18:26 +0100 |
commit | 5f6dacd2acd612c3ec7d069c853f808cfe9e3d00 (patch) | |
tree | d652a1df06765be019094e78c9682d7f3b07f5b3 /drumgizmo/enginefactory.cc | |
parent | 1e7485b7f42d64f86daf732b190ce287ef8ee33a (diff) |
Add OSS MIDI 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 a1b8a0b..d54c3e2 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_OSS + input.push_back("oss"); +#endif // list available output engines #ifdef HAVE_OUTPUT_DUMMY @@ -115,6 +118,12 @@ std::unique_ptr<AudioInputEngine> EngineFactory::createInput(const std::string& return std::make_unique<JackMidiInputEngine>(*jack); } #endif +#ifdef HAVE_INPUT_OSS + if(name == "oss") + { + return std::make_unique<OssMidiInputEngine>(); + } +#endif // todo: add more engines |