Skip to content

Proper code for triggering A2DP source with events and SD card? #603

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

You must be logged in to vote

You never close any file: this will lead to some memory leaks...
I would suggest that you try to close it before you open the next file: e.g. if (sound_file) sound_file.close();

Instead of some button library you can also use the functionality provided by the Audio Tools

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ButtMonkey
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