summaryrefslogtreecommitdiff
path: root/drumgizmo/enginefactory.cc
diff options
context:
space:
mode:
authorGoran Mekić <meka@tilda.center>2017-04-10 14:01:20 +0200
committerGoran Mekić <meka@tilda.center>2017-04-14 20:46:01 +0200
commit35ff1d5187da4a102406e035e8d5c02922266c16 (patch)
treeac3b91fb86cb3c2a6b4e299a4d402da2e5dcebcd /drumgizmo/enginefactory.cc
parent21c0b85b57c68d591108d5f8efc1c2247c05c74f (diff)
Add OSS output support
Diffstat (limited to 'drumgizmo/enginefactory.cc')
-rw-r--r--drumgizmo/enginefactory.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/drumgizmo/enginefactory.cc b/drumgizmo/enginefactory.cc
index d013ef9..a1b8a0b 100644
--- a/drumgizmo/enginefactory.cc
+++ b/drumgizmo/enginefactory.cc
@@ -63,6 +63,9 @@ EngineFactory::EngineFactory()
#ifdef HAVE_OUTPUT_JACKAUDIO
output.push_back("jackaudio");
#endif
+#ifdef HAVE_OUTPUT_OSS
+ output.push_back("oss");
+#endif
}
#ifdef USE_JACK
@@ -146,6 +149,12 @@ std::unique_ptr<AudioOutputEngine> EngineFactory::createOutput(const std::string
return std::make_unique<JackAudioOutputEngine>(*jack);
}
#endif
+#ifdef HAVE_OUTPUT_OSS
+ if(name == "oss")
+ {
+ return std::make_unique<OSSOutputEngine>();
+ }
+#endif
// todo: add more engines