<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240413</link>
    <title>MATLAB Central Newsreader - wavread and wavplay</title>
    <description>Feed for thread: wavread and wavplay</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 04 Dec 2008 07:50:22 -0500</pubDate>
      <title>wavread and wavplay</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240413#614965</link>
      <author>Ashwini Deshpande</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I have 2 sound files in .wav format. I need to run those two files.&lt;br&gt;
When i am playing first sound file, if i want to stop it and want to play the second, what do i do??&lt;br&gt;
&lt;br&gt;
Just have look at the following:&lt;br&gt;
[y, Fs] = wavread('F:\sound_1.wav');&lt;br&gt;
[y1, Fs1] = wavread('F:\sound_2.wav');&lt;br&gt;
wavplay(y,Fs,'async') ;&lt;br&gt;
wavplay(y1,Fs1,'async')  ;&lt;br&gt;
&lt;br&gt;
Here, 1st sound file which is running has to be stopped as soon i execute the 4th line code.&lt;br&gt;
&lt;br&gt;
Any help would be greatly appreciated ..&lt;br&gt;
&lt;br&gt;
Ashwini </description>
    </item>
    <item>
      <pubDate>Thu, 04 Dec 2008 10:14:02 -0500</pubDate>
      <title>Re: wavread and wavplay</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240413#614981</link>
      <author>Denis </author>
      <description>&quot;Ashwini Deshpande&quot; &amp;lt;vd.ashwini@mathworks.com&amp;gt; wrote in message &amp;lt;gh823u$fev$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have 2 sound files in .wav format. I need to run those two files.&lt;br&gt;
&amp;gt; When i am playing first sound file, if i want to stop it and want to play the second, what do i do??&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just have look at the following:&lt;br&gt;
&amp;gt; [y, Fs] = wavread('F:\sound_1.wav');&lt;br&gt;
&amp;gt; [y1, Fs1] = wavread('F:\sound_2.wav');&lt;br&gt;
&amp;gt; wavplay(y,Fs,'async') ;&lt;br&gt;
&amp;gt; wavplay(y1,Fs1,'async')  ;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Here, 1st sound file which is running has to be stopped as soon i execute the 4th line code.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any help would be greatly appreciated ..&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Ashwini &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
The problem is that you put a whole block of data into y and y1.&lt;br&gt;
Lets say it is a 2min Track then it need 2min till it will finished. To solve this problem, you have to write an m-file wich puts only small blocks into y and y1 and everytime time the data is done, refill/put again the y or y1.&lt;br&gt;
&lt;br&gt;
Hope that helps a bit.</description>
    </item>
    <item>
      <pubDate>Thu, 04 Dec 2008 10:19:02 -0500</pubDate>
      <title>Re: wavread and wavplay</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240413#614985</link>
      <author>Dave Brackett</author>
      <description>&quot;Ashwini Deshpande&quot; &amp;lt;vd.ashwini@mathworks.com&amp;gt; wrote in message &amp;lt;gh823u$fev$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have 2 sound files in .wav format. I need to run those two files.&lt;br&gt;
&amp;gt; When i am playing first sound file, if i want to stop it and want to play the second, what do i do??&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just have look at the following:&lt;br&gt;
&amp;gt; [y, Fs] = wavread('F:\sound_1.wav');&lt;br&gt;
&amp;gt; [y1, Fs1] = wavread('F:\sound_2.wav');&lt;br&gt;
&amp;gt; wavplay(y,Fs,'async') ;&lt;br&gt;
&amp;gt; wavplay(y1,Fs1,'async')  ;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Here, 1st sound file which is running has to be stopped as soon i execute the 4th line code.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any help would be greatly appreciated ..&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Ashwini &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
try slipping in a 'clear playsnd' statement before you want to play the second sound.</description>
    </item>
    <item>
      <pubDate>Thu, 04 Dec 2008 10:20:16 -0500</pubDate>
      <title>Re: wavread and wavplay</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240413#614987</link>
      <author>Denis </author>
      <description>see this thread for a possible solution:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/newsreader/view_thread/240412&quot;&gt;http://www.mathworks.com/matlabcentral/newsreader/view_thread/240412&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
greetings&lt;br&gt;
Denis</description>
    </item>
    <item>
      <pubDate>Thu, 04 Dec 2008 10:47:01 -0500</pubDate>
      <title>Re: wavread and wavplay</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240413#615000</link>
      <author>Ashwini Deshpande</author>
      <description>&quot;Denis &quot; &amp;lt;dzone@gmx.de&amp;gt; wrote in message &amp;lt;gh8at0$77s$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; see this thread for a possible solution:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/matlabcentral/newsreader/view_thread/240412&quot;&gt;http://www.mathworks.com/matlabcentral/newsreader/view_thread/240412&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; greetings&lt;br&gt;
&amp;gt; Denis&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thank u very much ....&lt;br&gt;
&lt;br&gt;
Its working fine !!!!!!&lt;br&gt;
&lt;br&gt;
Ashwini</description>
    </item>
  </channel>
</rss>

