From fd5e5f0dc41948d47f568c4f1dedaf15cb11014e Mon Sep 17 00:00:00 2001 From: Edward Li Date: Sun, 30 Jun 2024 01:23:49 +0900 Subject: [PATCH] Do the conversion in Oboe to try to get a low latency stream --- core/audio/audiobackend_oboe.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/audio/audiobackend_oboe.cpp b/core/audio/audiobackend_oboe.cpp index 08bc6e2d6..2843b7468 100644 --- a/core/audio/audiobackend_oboe.cpp +++ b/core/audio/audiobackend_oboe.cpp @@ -91,6 +91,7 @@ class OboeBackend : AudioBackend ->setFormat(oboe::AudioFormat::I16) ->setChannelCount(oboe::ChannelCount::Stereo) ->setSampleRate(44100) + ->setSampleRateConversionQuality(oboe::SampleRateConversionQuality::High) ->setFramesPerCallback(SAMPLE_COUNT) ->setDataCallback(&audioCallback) ->setErrorCallback(&errorCallback)