Save 16 bit signed PCM audio file on Android from BGX device
问题 I am working on a mobile application which should be able to read some audio data from a device via Bluetooth. The device has a BGX low energy bluetooth module. There's a very nicely documented framework for BGX on the website of the manufacturer and I successfully managed to connect the device and read the audio data. The problem is that the BGXService provides me the data in String format, which is an array of chars and char is 16 bit unsigned in Java; However, the audio data that I want to