I'm writing a program to play audio from a Resources folder located in the same directory as my application (so it can be moved to a different computer) using the Windows Media Player component.
My current code to select the audio clip is:
soundPlayer.URL = @"C:\Users\Ryan\Desktop\MyProgram\SFX\nameThatTune.mp3";
Which works fine, but when I change it to:
soundPlayer.URL = @"SFX\showIntro.mp3";
It stops working. I've also tried beginning the file path with ~/ and ../, but neither work. Is this a problem specific to the WMP Component or am I missing a bigger problem?