Playing multiple audio files in a row using A2DP Source #208
-
Hi! I tried using BluetoothA2DPSource to play some audio files stored in memory, but when I try to write a second audio data the program doesn't work, I tried to stop and reconnect and it also doesn't work. Any idea about how to do this? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
pschatzmann
Apr 24, 2022
Replies: 1 comment 1 reply
-
Just use the approach described in 'Sending Data from a A2DS Data Source with a Callback'. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pschatzmann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just use the approach described in 'Sending Data from a A2DS Data Source with a Callback'.
In the callback you just provide the incremental data from your files. If you want to add some pause between the files just fill the buffer with 0 values.