summaryrefslogtreecommitdiff
path: root/src/audio_core/sink_details.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_core/sink_details.cpp')
-rw-r--r--src/audio_core/sink_details.cpp6
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 @@
8#include <vector> 8#include <vector>
9#include "audio_core/null_sink.h" 9#include "audio_core/null_sink.h"
10#include "audio_core/sink_details.h" 10#include "audio_core/sink_details.h"
11#ifdef HAVE_CUBEB
12#include "audio_core/cubeb_sink.h"
13#endif
11#include "common/logging/log.h" 14#include "common/logging/log.h"
12 15
13namespace AudioCore { 16namespace AudioCore {
14 17
15// g_sink_details is ordered in terms of desirability, with the best choice at the top. 18// g_sink_details is ordered in terms of desirability, with the best choice at the top.
16const std::vector<SinkDetails> g_sink_details = { 19const std::vector<SinkDetails> g_sink_details = {
20#ifdef HAVE_CUBEB
21 SinkDetails{"cubeb", &std::make_unique<CubebSink, std::string>, &ListCubebSinkDevices},
22#endif
17 SinkDetails{"null", &std::make_unique<NullSink, std::string>, 23 SinkDetails{"null", &std::make_unique<NullSink, std::string>,
18 [] { return std::vector<std::string>{"null"}; }}, 24 [] { return std::vector<std::string>{"null"}; }},
19}; 25};