Skip to content

A2DP Source - Play audio on an event #512

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

You must be logged in to vote

I think the answer is quite obvious: You will play your sound when you receive your event, otherwise you just play silence (0 values).
This prevents A2DP from disconnecting. If I remember right, the A2DPStream (of the AudioTools) provides an option which automatically provides silence, if there is nothing to play.

But be aware, A2DP has quite some lag!

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@ayousaf21
Comment options

@pschatzmann
Comment options

@ayousaf21
Comment options

@pschatzmann
Comment options

@ayousaf21
Comment options

Comment options

You must be logged in to vote
1 reply
@ayousaf21
Comment options

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
3 participants