🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using keyboard to interact with sounds

#704
From: Ted Lyngmo
Date: Wed, 28 May 2003 04:22
30 lines
2170 bytes
ASFern wrote:
 > Ted,
 > Thank you for your help.
 > The reason I have not used PlaySound is 1) because I haven't found
 > documentation on this function (I am using Builder 5.0).

I have it in Builder 4.0, and there I have it in Microsoft Multimedia 
Programmers Reference.

 > 2)I need to play the sounds for a given amount of time, say I
 > want to play a 60 s wave file for only 33 s. You can control
 > the sound length very easily with TMediaPlayer, I am not sure
 > that is the case with PlaySound.

I see. This stops playback of a sound being played:
PlaySound(NULL,NULL,SND_PURGE);
But of course, if the sound is being played synchronically, you would have to 
put this operation in a separate thread.

 > The posibility of using multithreads is a good one, I'll look
 > at that later. Again thanks for your time,

No problem at all.

Kind regards,
Ted Lyngmo

-- 
Replace MY_FIRST_NAME in my email address with my first name to send a private
email to me.
Technical Details
Message-ID: <3ED43989.5010404@lyncon.se>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ed03f10$1@newsgroups.borland.com> <3ED24E76.9050906@lyncon.se> <3ed40166$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,c52566132c19ab73
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-05-27 21:40:52 PST
Message-ID: <3ED43989.5010404@lyncon.se>
Date: Wed, 28 May 2003 06:22:33 +0200
From: Ted Lyngmo <MY_FIRST_NAME@lyncon.se>
Organization: Lyncon - Computer & Music consulting
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: sv,en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: Using keyboard to interact with sounds
References: <3ed03f10$1@newsgroups.borland.com> <3ED24E76.9050906@lyncon.se> <3ed40166$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.215.147.98
X-Trace: newsgroups.borland.com 1054095378 217.215.147.98 (27 May 2003 21:16:18 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail