From f983b701c886a50bdbf904382c4db67b8fecd0a4 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Sun, 21 Mar 2021 00:03:11 +0530 Subject: [PATCH] Fix BT Audio Stuttering Issues This fixes audio stuttering which occurred on certain BT audio devices by requesting an exclusive stream from Oboe alongside a low-latency stream. Co-authored-by: Billy Laws --- app/src/main/cpp/skyline/audio.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/cpp/skyline/audio.cpp b/app/src/main/cpp/skyline/audio.cpp index 254c2ac9..e4dfbdf8 100644 --- a/app/src/main/cpp/skyline/audio.cpp +++ b/app/src/main/cpp/skyline/audio.cpp @@ -11,6 +11,8 @@ namespace skyline::audio { builder.setFramesPerCallback(constant::MixBufferSize); builder.setUsage(oboe::Usage::Game); builder.setCallback(this); + builder.setSharingMode(oboe::SharingMode::Exclusive); + builder.setPerformanceMode(oboe::PerformanceMode::LowLatency); builder.openManagedStream(outputStream); outputStream->requestStart();