wav and mp3 in the same sketch and compiler warnings #1920
-
i have looked over and over in the examples and even here for a solution i can play a mp3 just fine using this code: and a wav file works but i cant seem to get them both to work at same time. here is my code:
i am also getting a ton of compiling issues like this:
it will still compile and work with these warnings |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
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. 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) |
Beta Was this translation helpful? Give feedback.
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)