This the code which I’m having problems:
MediaElement media = new MediaElement();
media.Source = new Uri("/ding.wav", UriKind.Relative);
media.Play();
The folder where contains that code is the same for the sound. I mean, they are in the same folder. And the build action from the file is RESOURCE.
It doesn’t play any sound. What’s happening?
Try
Note: When I tried, I had Build Action set to
Contentand Copy to Output Directory to"Copy Always"for ding.wav.