On some Android devices, when using OpenSL ES as a backend and connecting the phone via bluetooth to an audio device, there is no sound. + Solution. #285
Expected behavior:
When connecting a mobile phone to an audio device via bluetooth, sound should play.
Actual behavior:
When connecting the mobile phone to an audio device via bluetooth, there is no sound.
Steps to reproduce the problem:
Build SoLoud-based Android application using OpenSL ES backend.
Connect your mobile phone to an audio device via bluetooth.
Play the sound. You won't hear anything.
SoLoud version
20200207
Operating system
Android 8.0
Backend used:
OpenSL ES
Mobile Phone Model:
Samsung Galaxy A7 2017
Reason
Early firing Callback "soloud_opensles_play_callback". This causes the variable "data->buffersQueued" to be -1. This will stop filling sound buffers in the worker thread.
How to Fix:
In soloud\src\backend\opensles\soloud_opensles.cpp change the code in line 177.
Was:
Expected behavior: When connecting a mobile phone to an audio device via bluetooth, sound should play.
Actual behavior: When connecting the mobile phone to an audio device via bluetooth, there is no sound.
Steps to reproduce the problem:
SoLoud version 20200207
Operating system Android 8.0
Backend used: OpenSL ES
Mobile Phone Model: Samsung Galaxy A7 2017
Reason Early firing Callback "soloud_opensles_play_callback". This causes the variable "data->buffersQueued" to be -1. This will stop filling sound buffers in the worker thread.
How to Fix: In soloud\src\backend\opensles\soloud_opensles.cpp change the code in line 177. Was:
New: