play wav sound

from https://stackoverflow.com/questions/14491431/playing-wav-file-with-c-sharp


private void button1_Click(object sender, EventArgs e)
{
    SoundPlayer snd = new SoundPlayer( Properties.Resources.tada);
    snd.Play();

}

wave download
http://billor.chsh.chc.edu.tw/sound/alarm.htm



留言

熱門文章