I keep on getting an "Object reference not set to an instance of an object" message for my code, whilst what I'm trying to do is to initialize a sound that I have embedded in my program on visual studio, a little help please... Thanks :)
What I have tried:
Uri pathToFile = new Uri("pack://application:,,,/clang (1).wav");
StreamResourceInfo strm = Application.GetResourceStream(pathToFile);
SoundPlayer sp = new SoundPlayer(strm.Stream);
sp.PlayLooping();