A2DP Source - Play audio on an event #512
-
Hi, I'm interested in playing audio during specific events, such as triggering a sound after pressing one button and another sound after pressing a different button. Can you assist me with this? I would greatly appreciate your help. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
In other words, I am looking for connecting to Bluetooth speaker once, in the setup. And playing one of my sounds in function of the loop state. Could you help me ? Please |
Beta Was this translation helpful? Give feedback.
-
I think the answer is quite obvious: You will play your sound when you receive your event, otherwise you just play silence (0 values). But be aware, A2DP has quite some lag! |
Beta Was this translation helpful? Give feedback.
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!