X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.232.190 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: sound(), delay(), etcoetera Organization: Systematic Software Message-ID: References: X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 48 Date: Mon, 20 Mar 2006 10:03:27 GMT NNTP-Posting-Host: 64.59.135.176 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw3no 1142849007 64.59.135.176 (Mon, 20 Mar 2006 03:03:27 MST) NNTP-Posting-Date: Mon, 20 Mar 2006 03:03:27 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 18 Mar 2006 18:25:37 GMT in comp.os.msdos.djgpp, "Fausto Arinos Barbuto" wrote: > >Hi All; > > Even though functions sound(), nosound() and delay() are listed > as valid gcc built-in function in: > > http://www.delorie.com/djgpp/doc/libc/ > > they don't seem to work on my computer (HP a810n, AMD-64, > Realtek AC'97 Audio). For example, the sample code below > compiles like a charm but produces no sound or delay at all: > >#include >#include >#include > >int beepz(int freq); > >int main(void) >{ > int a; > > a = beepz(4000); > return(0); >} > >int beepz(int freq) >{ > printf("\n Beepz \n"); > sound(freq); > delay(180000); > nosound(); > return (0); >} > > I then ask, what's wrong here? Thanks in advance! Which OS are you using and which OS VDMs support the beeper? Works fine under W98SE VDM. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply