Scenario
How to make a beep sound from your computer?
Although you can use any sound library to work for you, there is a simple way to make just a beep sound. This becomes useful especially when you are running a program for a long time and you want to be notified when any certain condition reaches.
Thanks to Microsoft, we can achieve this in one line of code with the build-in methods.
Method
Console.Beep();//No parameter
Console.Beep(250, 250);//Parameter: int frequency, int duration
Subscribe to:
Post Comments (Atom)
comments
0 Responses to "C# How to beep from your computer"Post a Comment