Tag Archives: How to play mp3 while running a process in the background in C#

play mp3/wav background c#

 this code u will be able to play wave as well as MP3 File if working dont forgate to mark solved

For example use this code for .mp3:

WMPLib.WindowsMediaPlayer wplayer = new WMPLib.WindowsMediaPlayer();

wplayer.URL = "My MP3 file.mp3";

For example use this code for .wav:


System.Media.SoundPlayer player = new System.Media.SoundPlayer();

player.SoundLocation = "Sound.wav";






Leave a comment

Posted by on February 11, 2014 in Uncategorized


Tags: , ,