Playing a sound using Media.Soundplayer()
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hello I'm creating an application which use the Media.Soundplayer function. Currently i'm using a Media.Soundplayer funtions that Play when i press on different buttons, it works perfectly. I tried to create a new Media.SoundPlayer and load a file which should be looping while the application is running, but when i use the Media.Soundplayer it stop the previous file and start play the new one. So can anyone tell me how to play a file without it stop play unless i tell it to stop? This is how i load the files: private System.Media.SoundPlayer TrykPaaKnap = new SoundPlayer(Geografika.Properties.Resources.tryk); private System.Media.SoundPlayer BGMusik = new SoundPlayer(Geografika.Properties.Resources.Fjederdansen); Thanks