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 <blaws05@gmail.com>
This commit is contained in:
PixelyIon 2021-03-21 00:03:11 +05:30 committed by ◱ Mark
parent ae68009f9b
commit f983b701c8

View File

@ -11,6 +11,8 @@ namespace skyline::audio {
builder.setFramesPerCallback(constant::MixBufferSize); builder.setFramesPerCallback(constant::MixBufferSize);
builder.setUsage(oboe::Usage::Game); builder.setUsage(oboe::Usage::Game);
builder.setCallback(this); builder.setCallback(this);
builder.setSharingMode(oboe::SharingMode::Exclusive);
builder.setPerformanceMode(oboe::PerformanceMode::LowLatency);
builder.openManagedStream(outputStream); builder.openManagedStream(outputStream);
outputStream->requestStart(); outputStream->requestStart();