In my C# application, I need to play multiple audio files (WAV and MP3) one after the other. How can I accomplish that?
+2
A:
CodeProject have several examples that shows how to play audio. Once you get the hang of that playing multiple files after each other should be easy.
- A low-level audio player in C#
- Playing .wav files using C#
- Audio Player using winmm.dll and WPL File
- A simple class to allow you to play Wavs in C#
I find that working directly with winmm.dll is pretty easy. My recomendation is to start with example 3
Nifle
2009-06-15 20:31:08
thanks, Nifle.I took a look at example 3. and it wouldn't work with .wav files, would only work with .mp3, so I modified the MCI commands to fit my needs. and to achieve the fact that it would play the whole list one song after another, I added the "notify" feature and it worked out great. i'm happy i could solve my problem. it shows that somehow, as time passes, I'm learning more.Thanks again.Cheers !
Attilah
2009-06-16 14:21:07