android - What is the code flow for using AudioTrack to play audio on device after startBluetoothSco is called? -
i connecting mobile device android os 4.1 bluetooth device (device class = 1792), using bluetoothsco route audio (voice). i've setup bluetoothsocket using createrfcommsockettoservicerecord successfully.
my settings:
using audiorecord , audiotrack frequency = 8000, mediarecorder.audiosource.mic source audiorecord , audiomanager.stream_voice_call audiotrack, , trying both mode_in_communication , mode_in_call audiomanager mode.
without success. don't audio on device.
my questions:
- should use mode_in_communication or mode_in_call?
- need switch mode_normal or other mode in order play on device?
- can suggest code flow make sco audio play on device?
- can point out working code review?
notes:
- the "media audio" profile (a2dp) disabled on device - "call audio" profile (hfp) enabled.
will gladly share code, yet given existing q&as same.
regards.
Comments
Post a Comment