Re: How to make a simple beep?



Maybe here is not right place to ask such question. 

Basically, you will need to open /dev/console, call ioctl to the device with KIOCSOUND request (see 
<linux/kd.h>) and a integer that describes the freq. Use delay (usleep, nanosleep, etc.), then use 0 as freq 
to stop the beep.

--- ajhwb

--- garthskidstuff gmail com wrote:

From: "Garth's KidStuff" <garthskidstuff gmail com>
To: gtk-app-devel-list gnome org
Subject: How to make a simple beep?
Date: Sun, 1 Mar 2009 07:38:14 -0800

Hey All,

I'm running under Ubuntu 8.10 and want to make a simple beep -- like the
Windows Beep function which takes a frequency (in Hz) and a duration (in
milliseconds).  Does anyone have a place to point me?

TIA

-Garth

-- 
Garth Upshaw
Garth's KidStuff
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




_____________________________________________________________
Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]