17 #ifndef HH_SENF_Utils_Beeper_ 18 #define HH_SENF_Utils_Beeper_ 1 42 Beeper(std::string
const & device =
"/dev/console");
53 void beep_async(
float freq,
unsigned length,
unsigned count = 1,
unsigned delay = 100);
68 static const unsigned CLOCK_TICK_RATE = 1193180;
bool start_beep(float freq)
start playing.
void beep_async(float freq, unsigned length, unsigned count=1, unsigned delay=100)
play beep asynchronous
void stop_beep()
stop playing.
Beeper(std::string const &device="/dev/console")
Construct a new Beeper for the given device.
void beep_sync(float freq, unsigned length, unsigned count=1, unsigned delay=100)
play beep synchronous
Helper class to beep the pc speaker.