How can I make the computer beep in C#?

后端 未结 6 1568
小鲜肉
小鲜肉 2020-12-02 08:02

How do I make the computer\'s internal speaker beep in C# without external speakers?

6条回答
  •  情深已故
    2020-12-02 08:39

    It is confirmed that Windows 7 and newer versions (at least 64bit or both) do not use system speaker and instead they route the call to the default sound device.

    So, using system.beep() in win7/8/10 will not produce sound using internal system speaker. Instead, you'll get a beep sound from external speakers if they are available.

提交回复
热议问题