This video shows how to use the SoundPlayer control to play wav audio files in your application.
By: MSDN
Thanks for this pretty Video.
But for Sorrow I've a problem.
I tried to execute the code with V.S 2005
private System.Media.SoundPlayer sp = new System.Media.SoundPlayer();
private void btn_play_Click(object sender, EventArgs e)
{
sp.Stream = Properties.Resources.Mama;
sp.PlayLooping();
}
I had this beautiful ERROR (:D)
- Cannot implicitly convert type 'byte[]' to 'System.IO.Stream'
I'm just a beginner and looking forward HELP
And thanks for every thing.