Pause A2DP and play a sound from SD card #559
-
Hi, i would like pause the bluetooth speaker by pressing a button, then play a sound effect from the sd card and then resume playback. I've started from this example: player-sd_a2dp-audiokit.ino I think I am very close, starting bluetooth or sd separately works, but when I change the source get error: register I2S object to platform failed Probably i can't share i2s with player and a2dp_sink? Do you know a work around to archieve this? To simplify the code, I set the change every 5 seconds
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Make sure that you deactivate the I2S interface from the BluetoothA2DPSink and manage the audio output yourself via the I2SStream defined in your sketch! |
Beta Was this translation helpful? Give feedback.
Make sure that you deactivate the I2S interface from the BluetoothA2DPSink and manage the audio output yourself via the I2SStream defined in your sketch!
You are currently using 2 different APIs which use the same I2S resource but one does not know about the other. This is just asking for conflicts....