Path: news.mathworks.com!not-for-mail
From: "Ashwini Deshpande" <vd.ashwini@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: running and stopping wave files
Date: Thu, 4 Dec 2008 10:45:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <gh8cbg$on3$1@fred.mathworks.com>
References: <gh813i$22c$1@fred.mathworks.com> <gh8at1$77t$1@fred.mathworks.com> <gh8b7p$aj4$1@fred.mathworks.com>
Reply-To: "Ashwini Deshpande" <vd.ashwini@mathworks.com>
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 1228387504 25315 172.30.248.37 (4 Dec 2008 10:45:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 4 Dec 2008 10:45:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1101624
Xref: news.mathworks.com comp.soft-sys.matlab:504928


"Denis " <dzone@gmx.de> wrote in message <gh8b7p$aj4$1@fred.mathworks.com>...
> "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

Thanks a lotttt !!!

Dave's answer is short and sweet ...

Denis's answer is also very much helpful to me .......

Again thanks u both ....... 

Ashwini.  :-))