OpenSLAudioIODevice change samplerate crashing

When I try to change the samplerate or buffersize of an AudioIODevice on Android, the application is crashing. I’m not using AudioDeviceManager, but I’m following the same flow to stop and close an AudioIODevice and open it again. Right after this “restart” step of AudioIODevice, it is stopping in the void enqueueBuffer() of OpenSLAudioIODevice.

When testing DemoRunner, the application also can not change the samplerate or buffersize, but it was stopped in a different location when trying to create a new OpenSL session.

1 Like

Came across this while testing on a Pixel phone. Seemed to be caused by AudioDeviceManager::initialise being called twice.