summaryrefslogtreecommitdiffstats
path: root/src/audio_core/sink/sink_details.cpp
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2023-12-19 16:15:07 +0100
committerGitHub <noreply@github.com>2023-12-19 16:15:07 +0100
commitd61df0f4002274b23c0c7139449906ca392a6a3d (patch)
tree18195cd952b7d988570b3586ec1d02feed4a079f /src/audio_core/sink/sink_details.cpp
parentMerge pull request #12392 from liamwhite/mode (diff)
parentoboe_sink: specify additional required parameters (diff)
downloadyuzu-d61df0f4002274b23c0c7139449906ca392a6a3d.tar
yuzu-d61df0f4002274b23c0c7139449906ca392a6a3d.tar.gz
yuzu-d61df0f4002274b23c0c7139449906ca392a6a3d.tar.bz2
yuzu-d61df0f4002274b23c0c7139449906ca392a6a3d.tar.lz
yuzu-d61df0f4002274b23c0c7139449906ca392a6a3d.tar.xz
yuzu-d61df0f4002274b23c0c7139449906ca392a6a3d.tar.zst
yuzu-d61df0f4002274b23c0c7139449906ca392a6a3d.zip
Diffstat (limited to 'src/audio_core/sink/sink_details.cpp')
-rw-r--r--src/audio_core/sink/sink_details.cpp13
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,