Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System beep on Windows 7

Is it possible to make a beep sound which always plays in the speakers so people can hear it no matter if a headset is pluged in?

I am using c# wpf .Net 4.0 and of course windows 7

like image 265
7heViking Avatar asked Feb 22 '23 11:02

7heViking


1 Answers

Is it possible to make a beep sound which always plays in the speakers so people can hear it no matter if a headset is pluged in?

Starting in Windows 7, and in 64-bit versions of previous operating systems, the answer is no, you cannot always do a hardware beep. Larry Osterman explains why.

You can have a beep, but the core functionality moved into the Windows audio subsystem; so it would play through headphones if they are plugged in. As far as I know, there is no way to forcefully do a hardware beep in all cases in modern operating systems.

You can still perform a Beep using Console.Beep().

like image 113
vcsjones Avatar answered Feb 25 '23 01:02

vcsjones