Do the conversion in Oboe to try to get a low latency stream
This commit is contained in:
parent
f6c1503887
commit
c1f5f2e8f9
|
@ -91,6 +91,7 @@ public:
|
||||||
->setFormat(oboe::AudioFormat::I16)
|
->setFormat(oboe::AudioFormat::I16)
|
||||||
->setChannelCount(oboe::ChannelCount::Stereo)
|
->setChannelCount(oboe::ChannelCount::Stereo)
|
||||||
->setSampleRate(44100)
|
->setSampleRate(44100)
|
||||||
|
->setSampleRateConversionQuality(oboe::SampleRateConversionQuality::High)
|
||||||
->setFramesPerCallback(SAMPLE_COUNT)
|
->setFramesPerCallback(SAMPLE_COUNT)
|
||||||
->setDataCallback(&audioCallback)
|
->setDataCallback(&audioCallback)
|
||||||
->setErrorCallback(&errorCallback)
|
->setErrorCallback(&errorCallback)
|
||||||
|
|
Loading…
Reference in New Issue