Article View: borland.public.cppbuilder.nativeapi
Article #17250Re: PlaySound() API fuction control?
From: Remy Lebeau (TeamB)
Date: Mon, 31 Mar 2003 20:50
Date: Mon, 31 Mar 2003 20:50
21 lines
1900 bytes
1900 bytes
The sound is not continous. It is played over and over from start to end each time. If you're getting continuous sound, then your sound itself doesn't have any pauses in it. Try making a sound that has a 1 second pause at the end. The LOOP will do what you ask while still not requiring any timer. The alternative is as you already know - just make a separate thread, have it call PlaySound() in a while(!Terminated) loop with the SYNC flag instead, and then Sleep() for 1000 milliseconds between callings. You don't need to adjust the thread priority, though. Gambit "Jeff Douglass" <.> wrote in message news:3e88a4af$1@newsgroups.borland.com... > Thanks, but the problem with the LOOP method is that > the sound is continuous. What I want is BEEP 1 sec of > no sound BEEP 1 sec of no sound ........... > > Not a continuous BEEEEEEEEEEEEEEEEEEEEEP.
Technical Details
Message-ID:
<3e88aa16@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e8894b1$1@newsgroups.borland.com> <3e889be0$1@newsgroups.borland.com> <3e88a4af$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,222458dfba824527 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-31 13:08:36 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e8894b1$1@newsgroups.borland.com> <3e889be0$1@newsgroups.borland.com> <3e88a4af$1@newsgroups.borland.com> Subject: Re: PlaySound() API fuction control? Date: Mon, 31 Mar 2003 12:50:30 -0800 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e88aa16@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049143830 207.175.226.26 (31 Mar 2003 12:50:30 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail