diff options
author | Liam <byteslice@airmail.cc> | 2023-12-17 06:11:20 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-12-17 07:42:59 +0100 |
commit | 7239547eada6ad4a24e65957dfab180a51818947 (patch) | |
tree | 39b090bb0b9f74d8764a3c8d23ebd12c5e18f1f0 /src/audio_core/sink/sink_details.cpp | |
parent | Merge pull request #12378 from liamwhite/offsetof (diff) | |
download | yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.gz yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.bz2 yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.lz yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.xz yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.zst yuzu-7239547eada6ad4a24e65957dfab180a51818947.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/sink/sink_details.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/audio_core/sink/sink_details.cpp b/src/audio_core/sink/sink_details.cpp index 7c9a4e3ac..449af659d 100644 --- a/src/audio_core/sink/sink_details.cpp +++ b/src/audio_core/sink/sink_details.cpp @@ -7,6 +7,9 @@ #include <vector> #include "audio_core/sink/sink_details.h" +#ifdef HAVE_OBOE +#include "audio_core/sink/oboe_sink.h" +#endif #ifdef HAVE_CUBEB #include "audio_core/sink/cubeb_sink.h" #endif @@ -36,6 +39,16 @@ struct SinkDetails { // sink_details is ordered in terms of desirability, with the best choice at the top. constexpr SinkDetails sink_details[] = { +#ifdef HAVE_OBOE + SinkDetails{ + Settings::AudioEngine::Oboe, + [](std::string_view device_id) -> std::unique_ptr<Sink> { + return std::make_unique<OboeSink>(); + }, + [](bool capture) { return std::vector<std::string>{"Default"}; }, + []() { return true; }, + }, +#endif #ifdef HAVE_CUBEB SinkDetails{ Settings::AudioEngine::Cubeb, |