I need to play a sound byte (MP3
or wav
) from within a WPF
application. I would like to use the MediaPlayer
. I have a .wav
file with;
"Build Action" = Content
and "Copy to Output Directory" = "Copy if Newer"
and this file is located in the Resources directory of my app.
However, I just cant get the URI
string right. (and maybe the Build Action is not correct)