1

I Want to play a song in the background of my WPF Application, but i prefer not using MediaElement Because it requires MediaPlayer 10 to run, and i can't have control on whether the user will have it or not.

What are my options?

Stu
  • 15,675
  • 4
  • 43
  • 74
eric.itzhak
  • 15,752
  • 26
  • 89
  • 142

2 Answers2

3

If you do not want to use MediaElement, you can use NAudio to play an MP3.

Aaron McIver
  • 24,527
  • 5
  • 59
  • 88
  • NAudio is for .Net. Its originally made in .Net 2 I believe. The example was made in WinForms so you know its pretty old – MyKuLLSKI Feb 17 '12 at 19:28
0

There are multiple ways to play a Mp3 File in .Net. Try IrrKlang for example which is free for non-comercial usage. You could also use the C# port of JavaLayer.

tobsen
  • 5,328
  • 3
  • 34
  • 51