From 5f6dacd2acd612c3ec7d069c853f808cfe9e3d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Meki=C4=87?= Date: Sun, 21 May 2017 11:28:12 +0200 Subject: Add OSS MIDI input --- drumgizmo/enginefactory.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drumgizmo/enginefactory.cc') 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 EngineFactory::createInput(const std::string& return std::make_unique(*jack); } #endif +#ifdef HAVE_INPUT_OSS + if(name == "oss") + { + return std::make_unique(); + } +#endif // todo: add more engines -- cgit v1.2.3