🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12730

Problems with PlaySound()

#12730
From: David Ayre
Date: Wed, 19 Nov 2003 08:18
16 lines
1444 bytes
I'm using PlaySound to play wav files and have two problems.
1. I don't want it to go on to the next instruction until the wav
file is finished, but I would like to stop it before it ends.
If I use SND_ASYNC I can stop it, but the program moves on to
 the next line after starting the wav. If I use SND_SYNC it runs
to the end before moving on to the next line of program but I
cannot use the stop button.
2. I would like to trace the progress of the playing on a graph
which I have already displayed. Is there any way to get the
position in the file that the player is on?
Hope someone can help with this.

Cheers,

David
Technical Details
Message-ID: <3fbb355a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8bcd1b90d9cfd674,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-19 01:40:02 PST
From: "David Ayre" <davidcayre@aol.com>
Sender: "David Ayre" <davidcayre@aol.com>
Reply-To: "David Ayre" <davidcayre@aol.com>
Subject: Problems with PlaySound()
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 195.93.33.9     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fbb355a$1@newsgroups.borland.com>
Date: 19 Nov 2003 01:18:18 -0700
X-Trace: newsgroups.borland.com 1069233498 207.105.83.66 (19 Nov 2003 01:18:18 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail