Bluetooth audio connect

Bluetooth audio connect

BY 01 Apr 2018 Native Application Development

Hi,

I’m trying to connect my Gear s3 wearable to a bluetooth speaker(like JBL) and play a sound. I assume we must use the “Bluetooth Audio” API for this but after connecting to the bluetooth device speaker and entering the callback function (bt_audio_set_connection_state_changed_cb ()) upon successful connection, I try to play a sound it comes out from the wearable and not from the speaker.

1)What am I missing out here that I should implement to ensure the sound comes out through the speaker ? If you personally explain and enumerate the important steps to be done to achieve my goal and what API must be used,that would be helpful.

2)Also, If I want to reduce the latency between the speaker(sink) and the device(source), how can I do that?

Written by