Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: running and stopping wave files
Date: Thu, 4 Dec 2008 10:26:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <gh8b7p$aj4$1@fred.mathworks.com>
References: <gh813i$22c$1@fred.mathworks.com> <gh8at1$77t$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1228386361 10852 172.30.248.37 (4 Dec 2008 10:26:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 4 Dec 2008 10:26:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 533792
Xref: news.mathworks.com comp.soft-sys.matlab:504921


"Dave Brackett" <davebrackett@hotmail.com> wrote in message <gh8at1$77t$1@fred.mathworks.com>...
> "Ashwini Deshpande" <vd.ashwini@mathworks.com> wrote in message <gh813i$22c$1@fred.mathworks.com>...
> > Hi,
> > 
> > I am doing sound simulation. Here i need to run a wave file corresponding to user input. THere is no problem in doing so. 
> > 
> > But the problem is when a sound file is running and at the same time if i get an input from user, the sound which is running currently has to be stopped and new file has to be run as per the input.
> > 
> > How do i do this ?
> > Any help in this regards would be appreciated .
> > 
> > Thanks !
> > Ashwini
> 
> won't just 'clear playsnd' do the job of stopping the wav file playing?

hm. never used this. maybe this (yours) is easier to implement =)

Denis