Article View: borland.public.cppbuilder.multimedia
Article #700Re: Using keyboard to interact with sounds
From: Ted Lyngmo
Date: Mon, 26 May 2003 17:27
Date: Mon, 26 May 2003 17:27
31 lines
2429 bytes
2429 bytes
ASFern wrote: > Hi, > Can anyone help me? > I am working on a program to play wave files to a person who is sleeping. > I am using TMediaPlayer in Builder 5.0 Maybe the PlaySound() function would be enough for this? > Question: Is there any way to play a sequence of sounds, wait until a > sound finishes before another one starts and at the same time force the > computer to do something in response to a key-pressing action? Sure! You can always play the sounds sync'ed in a thread for example. Maybe this PlaySoundThread class will help you: > http://groups.google.com/groups?hl=sv&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=f0c9a76cd07be3da&seekm=3EC61DDF.6010607%40lyncon.se#link6 Btw, I suspect this has something to do with the recorded silence you asked about in another thread. My advice is to not have the silence included in the samples in an application like this. Use a TTimer() to get the silence you need instead. That way you can reuse the same sound, but with different times of silence. 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:
<3ED24E76.9050906@lyncon.se>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ed03f10$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-26 10:32:07 PST Message-ID: <3ED24E76.9050906@lyncon.se> Date: Mon, 26 May 2003 19:27:18 +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> 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 1053969663 217.215.147.98 (26 May 2003 10:21:03 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail