🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Easiest way to beep the speakers

#222
From: Mark Jacobs
Date: Fri, 17 Nov 2006 11:41
22 lines
1625 bytes
���� wrote:
> I want to send a beep to both Internal Case Speaker and also Sound
> Cart But the easiest way, API only , no component , no OCX, etc...
> is there any idea?

Try Beep(3000,500); for sound on the PC speaker (works for me under XP).

Also,

PlaySound("SystemQuestion",HInstance,SND_ALIAS|SND_ASYNC);

plays the System Question sound (whatever that is configured as) on the proper 
speakers (attached to the sound card)

HTH,
-- 

To be aware is to care.
-
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
Technical Details
Message-ID: <455d9fec$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,48645038bf79d9cf
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,CP1252
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.multimedia
References: <45598de3@newsgroups.borland.com>
Subject: Re: Easiest way to beep the speakers
Date: Fri, 17 Nov 2006 11:41:36 -0000
Lines: 23
Organization: DK Computing
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
NNTP-Posting-Host: 81.144.157.8
Message-ID: <455d9fec$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1163763692 81.144.157.8 (17 Nov 2006 03:41:32 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.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