Date: Sat, 26 Dec 2009 15:37:36 +0000 From: Anton Shterenlikht <mexas@bristol.ac.uk> To: Joe Marcus Clarke <marcus@marcuscom.com> Cc: Anton Shterenlikht <mexas@bristol.ac.uk>, freebsd-questions@freebsd.org Subject: Re: example c program that does "beep" Message-ID: <20091226153736.GB9918@mech-anton242.men.bris.ac.uk> In-Reply-To: <1261767739.1555.13.camel@shumai.marcuscom.com> References: <20091225185826.GA82073@mech-cluster241.men.bris.ac.uk> <1261767739.1555.13.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 25, 2009 at 02:02:19PM -0500, Joe Marcus Clarke wrote:
> On Fri, 2009-12-25 at 18:58 +0000, Anton Shterenlikht wrote:
> > How can I get a beep from c?
> > I looked at curses and syscons.c, but
> > still not clear.
> > Could somebody send me an example.
> > I'd be soooooo grateful.
>
> #include <stdio.h>
>
> int
> main(int argc, char **argv) {
> printf("%c", 7);
> return(0);
> }
Doesn't seem to do anything. Maybe
there's something wrong with my sound?
But mp3 player seems to come out ok.
Or maybe I missed something obvious..
thanks a lot
anton
--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091226153736.GB9918>
