PWMAudio - How to play multiple files? #2478
Unanswered
ArrrghIsle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having no luck in modifying the PlayRaw.ino to play multiple audio files.
I have successfully generated them in the correct format and I can play each individually. But for the life of me I can't figure out how to play the first and then at its conclusion play a second.
1: Can I use a single pointer for all audio files (x_wav.h) or does each file require their own pointers?
2: Do I need to either clear the buffer or call 'pwm.end()' after each audio file plays?
3: It seems that the 'pwm.onTransmit(cb)' is an initialization that needs to occur only once per sketch. Is this correct? And then 'pwm.begin(44100)' needs to be called for each individual use?
My apologies if these questions seem stupid. I'm sure they've got either a pill or a cream for that on Amazon.... ;)
Beta Was this translation helpful? Give feedback.
All reactions