I'm making a text based game on cmd using c#, and I need your help.
I'm using this code for playing audio:
SoundPlayer sndPlayer = new SoundPlayer();
sndPlayer.SoundLocation = @"C:\Users\Uri\Desktop\Music\Music for game\sp8.wav";
You use a relative path and ship that with your game.
For example, you ship your game with the executable and some folder with sounds where you add your sounds. You can then use a relative path to access them :
sndPlayer.SoundLocation = @"sounds\sp8.wav";