How to play mp3 using c # ... without third dll
2 answers
SoundPlayer only supports files .wav
. You have two options:
- Use a different method like the one mentioned by Francis B
- Convert MP3 to wav
Since this is internal to your application, I would convert it to wav and use SoundPlayer
it to reproduce it. The conversion will be a one-time process, so this is really the simplest solution.
+1
source to share