Closed Mapiarz closed 3 years ago
In AudioStreamOpenSLES::configureBufferSizes() we use the value DefaultStreamValues::FramesPerBurst.
It may be overwritten for versions >= 7.1. For 7.0 it should be honored, according to the code. (I think there may be a bug. It should ignore mPerformanceMode for <= API 7.0)
No matter what value I set, it seems to be ignored and the device opens an audio stream with the optimal frames per burst, which for this device is 240.
Note that the frameCount in the dumpsys is unrelated. That is set by the HAL, not Oboe.
You should check stream->getFramesPerBurst()
Hi
I'm using FluidSynth on Android with Oboe driver (https://github.com/FluidSynth/fluidsynth/blob/master/src/drivers/fluid_oboe.cpp).
My test device is Samsung Galaxy S6 running Android 7.0.0 - so no support for AAudio, uses OpenSL ES. Before I initialize the FS driver (which opens the audio stream, see referenced code above), I set
oboe::DefaultStreamValues::FramesPerBurst
to various values (just for testing). No matter what value I set, it seems to be ignored and the device opens an audio stream with the optimal frames per burst, which for this device is 240. I also set the performance mode to be 'LowLatency'.Here's the revelant adb logcat log:
And audio_flinger dumpsys:
Is there something weird going on or am I misinterpreting the data above? Could this be something that is vendor specific?
Thanks, Bartosz