Windows Beep() equivalent for Linux

前端 未结 6 796
我在风中等你
我在风中等你 2021-02-09 12:38

I am experimenting with Beep function on Windows:

#include 
...
Beep(frequency, duration);

The computer then beeps with some f

6条回答
  •  旧时难觅i
    2021-02-09 13:15

    Check out the source code for beep available with Ubuntu (and probably other distros) or have a look at http://www.johnath.com/beep/beep.c for another source (it's the same code, I believe).

    It allows you to control frequency, length and repetitions (among other things) with ease.

提交回复
热议问题