Playing audio files in WPF

Posted by deepak on Stack Overflow See other posts from Stack Overflow or by deepak
Published on 2010-03-22T02:04:12Z Indexed on 2010/03/22 2:11 UTC
Read the original article Hit count: 514

Filed under:
|

hai i need to play audio files in WPF

am using the following code

    FileTextBox.Text = selectedFileName;
    MediaPlayer mp = new MediaPlayer();
    mp.Open(new Uri(selectedFileName, UriKind.Relative ));
    mp.Play();

its working well, but it doesnt plays the sound. why ???

© Stack Overflow or respective owner

Related posts about wpf

Related posts about audio