🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #231

Re: Easiest way to beep the speakers

#231
From: 4N
Date: Mon, 20 Nov 2006 17:16
33 lines
2075 bytes
None of the APIs I know worked for me.
Actually, I think I read somewhere that APIs of windows use the external 
speaker if a soundcard is present (I can't recall if that was different in 
Win9x).
You should try asking in some assembler related NG to access output ports 
directly maybe.
btw if you come up to a solution before us it'd be nice to know it.


" Bruce Salzman" <bruce@nospam.org> ha scritto nel messaggio 
news:4561c1c9$1@newsgroups.borland.com...
>
> "����" <oh_dont@spam.me> wrote in message 
> news:4561b3e0@newsgroups.borland.com...
>> If I de-attach the sound card under WinXP
>> then internal speaker will beep !!!
>> but I want to beep it when I have the sound card attached to mainboard.
>>
>> You know?
>> I want to alert the user, when he made a mistake
>> a ShowMessage, an Image visibility and both Internal Speaker and 
>> Soudncard
>> Speaker will alert him !!
>> I wonder how to beep the internal speaker
>> Thanks everybody
>
> Try
>
> ::MessageBeep(-1);
>
> -- 
> Bruce
> 
Technical Details
Message-ID: <4561e2db@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45598de3@newsgroups.borland.com> <455d9fec$1@newsgroups.borland.com> <455df52f@newsgroups.borland.com> <4561b3e0@newsgroups.borland.com> <4561c1c9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,48645038bf79d9cf
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII
From: "4N" <xxxx@yyyy.zzz>
Newsgroups: borland.public.cppbuilder.multimedia
References: <45598de3@newsgroups.borland.com> <455d9fec$1@newsgroups.borland.com> <455df52f@newsgroups.borland.com> <4561b3e0@newsgroups.borland.com> <4561c1c9$1@newsgroups.borland.com>
Subject: Re: Easiest way to beep the speakers
Date: Mon, 20 Nov 2006 18:16:24 +0100
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 87.18.111.27
Message-ID: <4561e2db@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1164042971 87.18.111.27 (20 Nov 2006 09:16:11 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail