

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MP3 Cue Points Article Updated on Adobe Developer Connection</title>
	<atom:link href="http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated/feed" rel="self" type="application/rss+xml" />
	<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated</link>
	<description>Luck is the residue of good design.</description>
	<lastBuildDate>Tue, 20 Mar 2012 15:33:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dave Kramer</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405976</link>
		<dc:creator>Dave Kramer</dc:creator>
		<pubDate>Fri, 07 Aug 2009 13:56:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405976</guid>
		<description>I should note that when I test my movie, everything works 100%, but when I simulate download when testing or once it&#039;s up on the server, it fires. Hopefully there is something in that that will help you.</description>
		<content:encoded><![CDATA[<p>I should note that when I test my movie, everything works 100%, but when I simulate download when testing or once it&#8217;s up on the server, it fires. Hopefully there is something in that that will help you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Kramer</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405975</link>
		<dc:creator>Dave Kramer</dc:creator>
		<pubDate>Fri, 07 Aug 2009 13:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405975</guid>
		<description>I&#039;m using AS2. 

I really appreciated this!</description>
		<content:encoded><![CDATA[<p>I&#8217;m using AS2. </p>
<p>I really appreciated this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405973</link>
		<dc:creator>David Stiller</dc:creator>
		<pubDate>Fri, 07 Aug 2009 13:48:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405973</guid>
		<description>Dave,

I&#039;ll check this afternoon, if I get the chance.  The way I wrote &lt;code&gt;SoundSync&lt;/code&gt; (if I remember it right!) subsequent cues shouldn&#039;t fire under the circumstances you describe.  This is due to a timer inside the &lt;code&gt;SoundSync&lt;/code&gt; class that checks the current position of the sound itself: while paused, the position doesn&#039;t change.  Are you using the AS2 version, or the AS3 version?</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>I&#8217;ll check this afternoon, if I get the chance.  The way I wrote <code>SoundSync</code> (if I remember it right!) subsequent cues shouldn&#8217;t fire under the circumstances you describe.  This is due to a timer inside the <code>SoundSync</code> class that checks the current position of the sound itself: while paused, the position doesn&#8217;t change.  Are you using the AS2 version, or the AS3 version?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Kramer</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405972</link>
		<dc:creator>Dave Kramer</dc:creator>
		<pubDate>Fri, 07 Aug 2009 13:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405972</guid>
		<description>Hi David,

When I use your sound stop and start functions with SoundSync, the pause doesn’t stay paused … it fires at the next cue point, even though the sound has stopped.

Any ideas why?</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>When I use your sound stop and start functions with SoundSync, the pause doesn’t stay paused … it fires at the next cue point, even though the sound has stopped.</p>
<p>Any ideas why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405913</link>
		<dc:creator>David Stiller</dc:creator>
		<pubDate>Thu, 06 Aug 2009 19:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405913</guid>
		<description>Dave,

&lt;code&gt;SoundSync&lt;/code&gt; extends the native &lt;code&gt;Sound&lt;/code&gt; class, so in theory, you&#039;ll have to do whatever you would normally do with an instance of &lt;code&gt;Sound&lt;/code&gt;.  How are you trying to pause/play your &lt;code&gt;SoundSync&lt;/code&gt; instance?</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p><code>SoundSync</code> extends the native <code>Sound</code> class, so in theory, you&#8217;ll have to do whatever you would normally do with an instance of <code>Sound</code>.  How are you trying to pause/play your <code>SoundSync</code> instance?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Kramer</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405910</link>
		<dc:creator>Dave Kramer</dc:creator>
		<pubDate>Thu, 06 Aug 2009 19:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-405910</guid>
		<description>Do you have a Play / Pause for the soundSync? Anything I use, it&#039;s not working.

Or can you direct me to something that will work?</description>
		<content:encoded><![CDATA[<p>Do you have a Play / Pause for the soundSync? Anything I use, it&#8217;s not working.</p>
<p>Or can you direct me to something that will work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-163787</link>
		<dc:creator>David Stiller</dc:creator>
		<pubDate>Wed, 16 Apr 2008 05:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-163787</guid>
		<description>Michael,

You shouldn&#039;t run into any problems.  :)  Each class instantiates its own distinct objects.  Glad you like the &lt;code&gt;SoundSync&lt;/code&gt; class!</description>
		<content:encoded><![CDATA[<p>Michael,</p>
<p>You shouldn&#8217;t run into any problems.  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Each class instantiates its own distinct objects.  Glad you like the <code>SoundSync</code> class!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Dolce</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-163568</link>
		<dc:creator>Michael Dolce</dc:creator>
		<pubDate>Tue, 15 Apr 2008 20:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-163568</guid>
		<description>Hello David - 

I just came across your tutorial for adding cue points to MP3 audio files - I wanted to think you for the excellent tutorial, it works great, and was exactly what I was needing.

An application I&#039;m curently scoping uses both FLVs and MP3 files. I was wondering if you have come across any issues using the soundSync class with audio files in an app that also uses  FLVPlayBack components with the usuall addASCuePoint for video?

Thanks in advance - 

Michael</description>
		<content:encoded><![CDATA[<p>Hello David &#8211; </p>
<p>I just came across your tutorial for adding cue points to MP3 audio files &#8211; I wanted to think you for the excellent tutorial, it works great, and was exactly what I was needing.</p>
<p>An application I&#8217;m curently scoping uses both FLVs and MP3 files. I was wondering if you have come across any issues using the soundSync class with audio files in an app that also uses  FLVPlayBack components with the usuall addASCuePoint for video?</p>
<p>Thanks in advance &#8211; </p>
<p>Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-119401</link>
		<dc:creator>David Stiller</dc:creator>
		<pubDate>Thu, 10 Jan 2008 21:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-119401</guid>
		<description>Mark,

&lt;blockquote&gt;I have run into a bug with the AS2.0 version of the code and am wondering if you’ve encountered it before. It happens pretty randomly, when a cue point event triggers, it triggers twice.&lt;/blockquote&gt;

I&#039;ve used this same code a number of times myself.  What you&#039;re describing does sound familiar.  I do recall discovering the occasional weakness while using this class in actual projects.  The good news is, I also remember managing to fix each issue as it came up, so I hope that provides some encouragement!

For what it&#039;s worth, here&#039;s a snippet from a change I made to the &lt;code&gt;pollCuePoints()&lt;/code&gt; method in one of my projects:

&lt;pre&gt;&lt;code&gt;private function pollCuePoints():Void {
  // If current position is near the current cue point&#039;s time ...
  var time:Number = _cuePoints[_currentCuePoint].time;
  var span:Number = (_cuePoints[_currentCuePoint + 1].time) ?
    _cuePoints[_currentCuePoint + 1].time :
    time + _intervalDuration * 2;
  // HACK: hardwire span to 1 sec for single cue points under a sec
  if (_cuePoints.length == 1 &amp;&amp; time &lt;= 1000) span = 1000;
  if (position &gt;= time &amp;&amp; position &lt;= span) {
  // Dispatch event
  if (_cuePoints[_currentCuePoint]) {
    dispatchEvent(_cuePoints[_currentCuePoint]);
  }
  // Advance to next cue point ...
  if (_currentCuePoint &lt; _cuePoints.length) {
    _currentCuePoint++;
  } else {
    _currentCuePoint = getNextCuePointIndex(_secondOffset);
  }
}&lt;/code&gt;&lt;/pre&gt;

I don&#039;t know if that will help you at all &#8212; I fear it may not &#8212; but you&#039;re certainly on the right track by tweaking &lt;code&gt;_intervalDuration&lt;/code&gt;.  If the above snippet doesn&#039;t change or correct the other issue, you may want to experiment with the &lt;code&gt;span&lt;/code&gt; variable on your own.  Those values work together and can probably stand to be tweaked for each situation.  Which tells me I &lt;em&gt;should&lt;/em&gt; have made them configurable.  ;)</description>
		<content:encoded><![CDATA[<p>Mark,</p>
<blockquote><p>I have run into a bug with the AS2.0 version of the code and am wondering if you’ve encountered it before. It happens pretty randomly, when a cue point event triggers, it triggers twice.</p></blockquote>
<p>I&#8217;ve used this same code a number of times myself.  What you&#8217;re describing does sound familiar.  I do recall discovering the occasional weakness while using this class in actual projects.  The good news is, I also remember managing to fix each issue as it came up, so I hope that provides some encouragement!</p>
<p>For what it&#8217;s worth, here&#8217;s a snippet from a change I made to the <code>pollCuePoints()</code> method in one of my projects:</p>
<pre><code>private function pollCuePoints():Void {
  // If current position is near the current cue point's time ...
  var time:Number = _cuePoints[_currentCuePoint].time;
  var span:Number = (_cuePoints[_currentCuePoint + 1].time) ?
    _cuePoints[_currentCuePoint + 1].time :
    time + _intervalDuration * 2;
  // HACK: hardwire span to 1 sec for single cue points under a sec
  if (_cuePoints.length == 1 &#038;&#038; time < = 1000) span = 1000;
  if (position >= time &#038;&#038; position < = span) {
  // Dispatch event
  if (_cuePoints[_currentCuePoint]) {
    dispatchEvent(_cuePoints[_currentCuePoint]);
  }
  // Advance to next cue point ...
  if (_currentCuePoint < _cuePoints.length) {
    _currentCuePoint++;
  } else {
    _currentCuePoint = getNextCuePointIndex(_secondOffset);
  }
}</code></code></pre>
<p>I don't know if that will help you at all &mdash; I fear it may not &mdash; but you're certainly on the right track by tweaking <code>_intervalDuration</code>.  If the above snippet doesn't change or correct the other issue, you may want to experiment with the <code>span</code> variable on your own.  Those values work together and can probably stand to be tweaked for each situation.  Which tells me I <em>should</em> have made them configurable.  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Marino</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-118516</link>
		<dc:creator>Mark Marino</dc:creator>
		<pubDate>Mon, 07 Jan 2008 23:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/cue-points-article-updated#comment-118516</guid>
		<description>Hi David -

First off, thanks for putting this tutorial together and for explaining how the code works so thoroughly.  I am using this method in some eLearning I&#039;m creating and it&#039;s been a huge help.

I have run into a bug with the AS2.0 version of the code and am wondering if you&#039;ve encountered it before.  It happens pretty randomly, when a cue point event triggers, it triggers twice. I figured maybe it had something to do with the interval timer being too short, so I set _intervalDuration = 100; in the SoundSync.as file and that seems to be working so far.  

I have also encountered another issue where if you set a cue point right near the beginning of the audio (like say 700 ms, the trigger never gets fired off. I work around that by never setting a cue point before the first second or two of audio, but I&#039;d be interested to know if you&#039;ve seen that behavior as well.

Ta,
Mark</description>
		<content:encoded><![CDATA[<p>Hi David -</p>
<p>First off, thanks for putting this tutorial together and for explaining how the code works so thoroughly.  I am using this method in some eLearning I&#8217;m creating and it&#8217;s been a huge help.</p>
<p>I have run into a bug with the AS2.0 version of the code and am wondering if you&#8217;ve encountered it before.  It happens pretty randomly, when a cue point event triggers, it triggers twice. I figured maybe it had something to do with the interval timer being too short, so I set _intervalDuration = 100; in the SoundSync.as file and that seems to be working so far.  </p>
<p>I have also encountered another issue where if you set a cue point right near the beginning of the audio (like say 700 ms, the trigger never gets fired off. I work around that by never setting a cue point before the first second or two of audio, but I&#8217;d be interested to know if you&#8217;ve seen that behavior as well.</p>
<p>Ta,<br />
Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>

