delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/03/20/05:16:34

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Trace-PostClient-IP: 68.147.232.190
From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: sound(), delay(), etcoetera
Organization: Systematic Software
Message-ID: <l8vs121f85ncr886k3vjl19us96s6t9gou@4ax.com>
References: <BgYSf.154225$sa3 DOT 35331 AT pd7tw1no>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
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" <fbarbuto2002 DOT no AT spam DOT yahoo DOT ca> 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 <pc.h>
>#include <dos.h>
>#include <stdio.h>
>
>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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019