I am creating a game and using System.Media.SoundPlayer() to play a sound.
It works nicely when running from Visual Studio. But If I double click the .exe the sound isn't heard. Like:
No errors, which means it fines the file and runs it but I hear no sound. Any ideas?Code:mPlayer = new System.Media.SoundPlayer(); mPlayer.LoadAsync(); ... mPlayer.SoundLocation = "Sounds\\Sword.wav"; mPlayer.Play(); ...