tags:

views:

200

answers:

1

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.

  1. A low-level audio player in C#
  2. Playing .wav files using C#
  3. Audio Player using winmm.dll and WPL File
  4. 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
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