This is my tentative to build an AudioStreamer library for B4J, fully user configurable.
I'm not a Java developer, so please excuse me if something is not implemented using best practices.
Was build for my own use, but may be helpful for others too.
You can find attached a sample code...
I want top use a Bluetooth headset with AudioStreamer.
I'm doing the initialization using
Unfortunately audio is playing on the headset, but phone mic is still used for audio input.
Starting with Android 6.0, you can get the available audio input and output devices using AudioDeviceInfo.
I'm using the following inline JAVA code to get the list of audio devices. For each in/out audiodevice device I get the name, id and type.