diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-28 19:44:50 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-31 03:45:24 +0200 |
commit | f437c11caf2c1afc0b7d0fdb808be10d7b1adfcf (patch) | |
tree | e5224d2e6b57c5ac0aec46377d6bfae9072ab820 /src/audio_core/sink_details.cpp | |
parent | audio_core: Add interfaces for Sink and SinkStream. (diff) | |
download | yuzu-f437c11caf2c1afc0b7d0fdb808be10d7b1adfcf.tar yuzu-f437c11caf2c1afc0b7d0fdb808be10d7b1adfcf.tar.gz yuzu-f437c11caf2c1afc0b7d0fdb808be10d7b1adfcf.tar.bz2 yuzu-f437c11caf2c1afc0b7d0fdb808be10d7b1adfcf.tar.lz yuzu-f437c11caf2c1afc0b7d0fdb808be10d7b1adfcf.tar.xz yuzu-f437c11caf2c1afc0b7d0fdb808be10d7b1adfcf.tar.zst yuzu-f437c11caf2c1afc0b7d0fdb808be10d7b1adfcf.zip |
Diffstat (limited to 'src/audio_core/sink_details.cpp')
-rw-r--r-- | src/audio_core/sink_details.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio_core/sink_details.cpp b/src/audio_core/sink_details.cpp index 6396d8065..955ba20fb 100644 --- a/src/audio_core/sink_details.cpp +++ b/src/audio_core/sink_details.cpp @@ -8,12 +8,18 @@ #include <vector> #include "audio_core/null_sink.h" #include "audio_core/sink_details.h" +#ifdef HAVE_CUBEB +#include "audio_core/cubeb_sink.h" +#endif #include "common/logging/log.h" namespace AudioCore { // g_sink_details is ordered in terms of desirability, with the best choice at the top. const std::vector<SinkDetails> g_sink_details = { +#ifdef HAVE_CUBEB + SinkDetails{"cubeb", &std::make_unique<CubebSink, std::string>, &ListCubebSinkDevices}, +#endif SinkDetails{"null", &std::make_unique<NullSink, std::string>, [] { return std::vector<std::string>{"null"}; }}, }; |