[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to make a simple beep?
- From: zz excite it
- To: gtk-app-devel-list gnome org
- Subject: Re: How to make a simple beep?
- Date: Tue, 10 Mar 2009 08:01:10 +0100
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
>
> --- 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
>
Hi,
gdk_beep();
Ciao,
ZZ
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]