Play Audio to a BT Device on a button press #770
Replies: 2 comments 4 replies
-
|
Your code is impossible to read: please use the proper code formatting provided by Markdown! In any case, you need to feed the requested number of bytes as described in the Readme Chapter Sending Data from a A2DS Data Source with a Callback: if you have nothing just initialize the array with zeros. Here is an example that processes an mp3 file! |
Beta Was this translation helpful? Give feedback.
-
|
thank you for your answer! I gave it a short shot. and even turned off wifi after getting the file. i will have to look into that later... i am headed out for vacation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
my current setup looks like:
download a file from an internal webserver (home net)
init everything
play the sound on a button press.
basically i got everything up and running.
But: the usage of the callback does not really work the way i expect it to.
in the setup i use:
and in the isr i just set a variable (pressed) to true.
the loop looks like:
my callback looks like:
i guess there is more going on. since i dont see a reason in the documentation how the callback should be used.
i will change the loading of the file to a buffer... but first i would like to understand the callback.
do you have a hint for that?
Beta Was this translation helpful? Give feedback.
All reactions