Skip to content

BluetoothA2DPSink and MemoryStream of a byte[] sound both to I2sStream #1676

Answered by pschatzmann
vincenzolanera asked this question in Q&A
Discussion options

You must be logged in to vote

If you connect the BluetoothA2DPSink with a I2SStream, the i2s is automatically started and ended by the sink.

You try to write to a closed i2sStream!

So either open it by calling begin() in your playConnectedVoice or don't connect the i2sStream (and thus always leave it open) and do the a2dp audio output from the callback yourself.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants