Skip to content

wav and mp3 in the same sketch and compiler warnings #1920

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

You must be logged in to vote

I assume you are compiling in Arduino!

I don't recommend to change any settings in the preferences if you don't know what you are doing.
Did you try to change the setting for compiler warnings back to Default or None ?

ps. your logic is completely wrong: one way to correct this is to remove the copy() from the loop and add a copier.copyAll() at the end of your play methods to process the complere file.

Another is to call playwav() only after you completeley processed the first file (when the copy in the loop returns 0)

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@pschatzmann
Comment options

@hammerheaddown
Comment options

@pschatzmann
Comment options

@hammerheaddown
Comment options

@pschatzmann
Comment options

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
2 participants