Do the conversion in Oboe to try to get a low latency stream

This commit is contained in:
Edward Li 2024-06-30 01:23:49 +09:00 committed by flyinghead
parent f6c1503887
commit c1f5f2e8f9
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ public:
->setFormat(oboe::AudioFormat::I16)
->setChannelCount(oboe::ChannelCount::Stereo)
->setSampleRate(44100)
->setSampleRateConversionQuality(oboe::SampleRateConversionQuality::High)
->setFramesPerCallback(SAMPLE_COUNT)
->setDataCallback(&audioCallback)
->setErrorCallback(&errorCallback)