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:

  1. should use mode_in_communication or mode_in_call?
  2. need switch mode_normal or other mode in order play on device?
  3. can suggest code flow make sco audio play on device?
  4. can point out working code review?

notes:

  1. 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

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -