How can I play 3 wav file simultaneously ?

Hi, i want to play 3 wav file simultaneously with 3 different speaker. Each speaker will play one of the 3 wav file simultaneously. I am very confused about this one. Sound quality is not important right now. I want to go one step at a time. Any method will be appreciated. Thanks.

This will play more than one file but not sure if it does three:-

Sound quality is not important right now

I hope it is not important ever because you are not going to improve it.

Grumpy_Mike:
This will play more than one file but not sure if it does three:-
GitHub - TMRh20/TMRpcm: Arduino library for asynchronous playback of PCM/WAV files direct from SD card. Arduino Uno,Nano,Mega etc supported
I hope it is not important ever because you are not going to improve it.

Does it play more than one file with different speakers ?

No idea look at the code.

hey guys, im new at this and i really need help. First of all you need to understand what is my needs in this project.Here is what i have:
-arduino pro mini
-minisd card module
-3 different speaker.

i will 3 different sound file in to the sd card. and i will read all of them simultaniously. For example I have sound1.wav sound2.wav sound3.wav
speaker 1 will play sound1.wav
speaker 2 will play sound2.wav
speaker 3 will play sound3.wav.

I looked the library that mentioned before under this topic. There are a way to do that with 2 differend sound file and 2 different speaker. But I couldnt find a way to make it 3. I really need help guys. Thans alot for sharing..

What you are asking is a bit too much for the processing power and memory limitations of such a small processor. An SD card can only have one file open at a time so to get it to appear there are two open you have to buffer the data. There is not enough memory to buffer it to make it look like three are open with the memory you have. Or at least no one has pushed the resulting quality that low.

What you have is unreasonable expectations of what is involved in doing this and what a small processor like this can do. Sorry.

Grumpy_Mike:
What you are asking is a bit too much for the processing power and memory limitations of such a small processor. An SD card can only have one file open at a time so to get it to appear there are two open you have to buffer the data. There is not enough memory to buffer it to make it look like three are open with the memory you have. Or at least no one has pushed the resulting quality that low.

What you have is unreasonable expectations of what is involved in doing this and what a small processor like this can do. Sorry.

Im sorry to reply took this long. But my sound files are 2-3 kb nothing more. Is it still unreasonable ? What can I do for make this happen ? thank you so much for your answers.

You only have 2K of memory in a UNO and 8K in a Mega, so there is not much in comparison to your files.

You could always add an extra SRAM memory to the Arduino and move your samples into that before playing them out.

Grumpy_Mike:
You only have 2K of memory in a UNO and 8K in a Mega, so there is not much in comparison to your files.

You could always add an extra SRAM memory to the Arduino and move your samples into that before playing them out.

I will look into it. Thank you so much for your helps. Im do not really understand programming. So I tried to look into the TMRpcm library to modify it.
+Multi_Mode supports 2 audio at the same time with same timer.
+Mode 2 of Multi_Mode supports 2 audio at the same time with different timers.
I want to merge these 2 modes together. 2 audio with timer1 and 1 audio with timer2. can this be done by modifying the code or I need a brand new code ?

I tried to modify it but couldnt understand a single word. Im so sorry to bother you like this but I want to understand and build something. If you could help me with that it would be great. Thanks again.

Im do not really understand programming.

That sort of scuppers you, sorry.

It is not the sort of project that lends itself to remote operation as it is quite complex and the results are not so good as you can see with just the two files playing so it is not worth putting the effort into making it work.

nurimo:
Im sorry to reply took this long. But my sound files are 2-3 kb nothing more. Is it still unreasonable ? What can I do for make this happen ? thank you so much for your answers.

If the files are only 2-3 kilobits you can fit about 5 of them in the Uno's 16 kibibits of RAM, so it does sound reasonable to hold just 3 at the same time.

.... Unless you mean the files are 2-3 kilobytes, which is abbreviated as "kB" and not as "kb", in which case even one will not fit completely in the Uno's RAM.

Ugh, too complicated.
Get 3 MP3 modules, simple Serial.write(0x0) to (0xc7) command to them to play track from 1 to 199.
http://www.mdfly.com/search.php?search_query=mp3