Re: How to make a simple beep?

2009-03-10 Thread Ardhan Madras
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

--- garthskidst...@gmail.com wrote:

From: Garth's KidStuff garthskidst...@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
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: How to make a simple beep?

2009-03-10 Thread zz
On Tuesday 10 March 2009 07:35:35 Ardhan Madras wrote:
 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
 
 --- garthskidst...@gmail.com wrote:
 
 From: Garth's KidStuff garthskidst...@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
 


Hi,

gdk_beep();


Ciao,
ZZ
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


How to make a simple beep?

2009-03-01 Thread Garth's KidStuff
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