diff options
author | Goran Mekić <meka@tilda.center> | 2017-12-30 15:55:53 +0100 |
---|---|---|
committer | Goran Mekić <meka@tilda.center> | 2017-12-30 15:55:53 +0100 |
commit | eb10ac5e8abd41c386d05e555406ec92a54f0164 (patch) | |
tree | 70cd659a85d49679debf49fe7da25ffa5908234a /drumgizmo/enginefactory.cc | |
parent | 992750a805d21de4ffcf7f4382fea8aa1f58c3b7 (diff) | |
parent | 74f18e24e100b487184e3dd7a57fe1609f645654 (diff) |
Merge branch 'feature/oss-midi'
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..c93607e 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_OSSMIDI + if(name == "ossmidi") + { + return std::make_unique<OSSInputEngine>(); + } +#endif // todo: add more engines |