Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Additional Audio Player Example #2116

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

I've been experimenting with your player-sdfat-a2dp.ino example and I've gotten it to work fine. What I need, however, is an AudioSource class where I can call a function with an MP3 file name on the SD card and it will be played until complete and then return to be given another file to play. I don't need or want auto incrementing indices. This new AudioSource class should also have methods for playing status, starting, stopping, pausing, unpausing, etc.

Does anyone out there have code to do this?

You must be logged in to vote

If you dont want to sequentially play all files, then the AudioPlayer might not be the best class.
If you want to stick with it, just implement your own AudioSource or use the AudioSourceCallback as described in the documentation

Replies: 1 comment

Comment options

If you dont want to sequentially play all files, then the AudioPlayer might not be the best class.
If you want to stick with it, just implement your own AudioSource or use the AudioSourceCallback as described in the documentation

You must be logged in to vote
0 replies
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

AltStyle によって変換されたページ (->オリジナル) /