I'm working an Android project about record and play from a connected Bluetooth headset's microphone. I need to use native code (Open SL ES). I referred this answer of Hoan Nguyen to write for connection Bluetooth (by Java). My results:
If I record and play using Java (Using AudioRecord
for record and AudioTrack
for play) => okay
If I record using native code => fail.
I also referred this but it was not finalized.
Does OpenSL ES not support bluetooth headset? Or Have I to write native code for connection Bluetooth?
Thanks!