Search code examples
.netvisual-studio-2010windows-mobileintermec

Play sound file on windows mobile device (.wav specifically)


I want to play a .wav file on a mobile device. I guess my trouble lies in actually accessing the file correctly. The following is the code I currently have:

string path = "\\Windows\\badRead.wav";
System.Media.SoundPlayer player = new System.Media.SoundPlayer(path);
player.PlaySync();
player.PlaySync();

What am I missing? The error I'm receiving is "Please be sure a sound file exists at the specified location. IS it that it's searching for the wav file on the server? Thank you in advance.


Solution

  • I used javascript instead of trying to play the sound server side.

    I found my answer here