How to play multiple WAV-Files or MP3 files (want to build a Drum Module #2060
-
Hi, How can you play several mp3s or wav-files SIMULTANEOUSLY with you library? /**
#include "AudioTools.h" AudioInfo info(32000, 2, 16); // Arduino Setup // start I2S // Setup sine wave mixer.add(sound1); Serial.println("started..."); // Arduino loop - copy sound to out But as i am a beginner in coding, i am not able to change the code in a way, that MP3s are played instead of the SINE-WAVES. I hope this is the last question i have to ask you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Please read the Wiki about Codecs and the one about Mixing and Merging Audio! I suggest that you keep things simple and stick with WAV files. |
Beta Was this translation helpful? Give feedback.
Please read the Wiki about Codecs and the one about Mixing and Merging Audio!
If your files have a different AudioInfo (e.g. sample rate) you will also need to read the Wiki about Changing the Format!
I suggest that you keep things simple and stick with WAV files.
With MP3 you will run into all sorts of problems if you try this...