diff options
| author | 2016-04-27 10:57:29 +0100 | |
|---|---|---|
| committer | 2016-05-07 11:32:48 +0100 | |
| commit | 920d2cf41d9366a597bbd30d1dea5ba1884b3800 (patch) | |
| tree | ca4d930691a4f10b2c6aea5be078b41bdfe76c3e /src/audio_core/sink_details.cpp | |
| parent | Merge pull request #1729 from MerryMage/null-sink (diff) | |
| download | yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.gz yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.xz yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.zip | |
AudioCore: SDL2 Sink
Diffstat (limited to 'src/audio_core/sink_details.cpp')
| -rw-r--r-- | src/audio_core/sink_details.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audio_core/sink_details.cpp b/src/audio_core/sink_details.cpp index d2cc74103..ba5e83d17 100644 --- a/src/audio_core/sink_details.cpp +++ b/src/audio_core/sink_details.cpp | |||
| @@ -8,10 +8,17 @@ | |||
| 8 | #include "audio_core/null_sink.h" | 8 | #include "audio_core/null_sink.h" |
| 9 | #include "audio_core/sink_details.h" | 9 | #include "audio_core/sink_details.h" |
| 10 | 10 | ||
| 11 | #ifdef HAVE_SDL2 | ||
| 12 | #include "audio_core/sdl2_sink.h" | ||
| 13 | #endif | ||
| 14 | |||
| 11 | namespace AudioCore { | 15 | namespace AudioCore { |
| 12 | 16 | ||
| 13 | // g_sink_details is ordered in terms of desirability, with the best choice at the top. | 17 | // g_sink_details is ordered in terms of desirability, with the best choice at the top. |
| 14 | const std::vector<SinkDetails> g_sink_details = { | 18 | const std::vector<SinkDetails> g_sink_details = { |
| 19 | #ifdef HAVE_SDL2 | ||
| 20 | { "sdl2", []() { return std::make_unique<SDL2Sink>(); } }, | ||
| 21 | #endif | ||
| 15 | { "null", []() { return std::make_unique<NullSink>(); } }, | 22 | { "null", []() { return std::make_unique<NullSink>(); } }, |
| 16 | }; | 23 | }; |
| 17 | 24 | ||