Tag Archives: beep

Play tones with specific frequencies in C#

This example shows how you can play tones with a given frequency and duration. When the user clicks the Play button, the following code plays a tone. private void btnPlay_Click(object sender, EventArgs e) { int freq = int.Parse(txtFrequency.Text); int duration … Continue reading

Posted in audio, multimedia | Tagged , , , , , , , , , , , , | Leave a comment

Play system sounds: beep, asterisk, question, etc. in C#

This example shows how to do something simple yet very useful: playing the default system sounds. Sometimes you may want to make your program beep or make some other sound. It would be nice to just call a Beep method. … Continue reading

Posted in audio, system | Tagged , , , , , , , , , | 1 Comment