<?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: Second steps with Flash 10 audio programming</title>
	<atom:link href="http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/</link>
	<description>a stroke of luck</description>
	<lastBuildDate>Thu, 02 Feb 2012 07:32:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: VC:One</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-87249</link>
		<dc:creator>VC:One</dc:creator>
		<pubDate>Wed, 07 Dec 2011 08:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-87249</guid>
		<description>Just a quick one to say thanks for sharing the knowledge. Here&#039;s what you&#039;ve gone and inspired me to do...

http://vcone.wordpress.com/2011/12/07/mp3-speed-adjust-with-as3/

There&#039;s a link to the zip (FLA + AS file) for those who want to study the code. Thanks, V.C</description>
		<content:encoded><![CDATA[<p>Just a quick one to say thanks for sharing the knowledge. Here's what you've gone and inspired me to do...</p>
<p><a href="http://vcone.wordpress.com/2011/12/07/mp3-speed-adjust-with-as3/" rel="nofollow">http://vcone.wordpress.com/2011/12/07/mp3-speed-adjust-with-as3/</a></p>
<p>There's a link to the zip (FLA + AS file) for those who want to study the code. Thanks, V.C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MP3 Speed Adjust with AS3 &#171; VC:One</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-87246</link>
		<dc:creator>MP3 Speed Adjust with AS3 &#171; VC:One</dc:creator>
		<pubDate>Wed, 07 Dec 2011 07:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-87246</guid>
		<description>[...] is an update of another demo I did a while ago that was inspired &amp; based on code by Kelvin Luck. The previous version was limited &#8211; only allowed users to play/stop, adjust speed and open a [...]</description>
		<content:encoded><![CDATA[<p>[...] is an update of another demo I did a while ago that was inspired &amp; based on code by Kelvin Luck. The previous version was limited &#8211; only allowed users to play/stop, adjust speed and open a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amitabh Arora</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-83893</link>
		<dc:creator>Amitabh Arora</dc:creator>
		<pubDate>Fri, 18 Nov 2011 07:20:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-83893</guid>
		<description>Is there a way to stream a multi-track audio and be able to change qualizer settings for individual tracks?  I am truying to implement a karaoke site where the vocals could be muted.

Cheers. -Amitabh</description>
		<content:encoded><![CDATA[<p>Is there a way to stream a multi-track audio and be able to change qualizer settings for individual tracks?  I am truying to implement a karaoke site where the vocals could be muted.</p>
<p>Cheers. -Amitabh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-65776</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 19 May 2011 04:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-65776</guid>
		<description>Any chance you can you send over the FLA example?  Keep getting errors that the base class is not found and subclasses are not referenced.</description>
		<content:encoded><![CDATA[<p>Any chance you can you send over the FLA example?  Keep getting errors that the base class is not found and subclasses are not referenced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eracer</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-57164</link>
		<dc:creator>eracer</dc:creator>
		<pubDate>Wed, 26 Jan 2011 17:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-57164</guid>
		<description>I got it to compile, I post it just for other newbies in town.

First install Flex SDK (I am using Kubuntu):

http://www.dotkam.com/2009/03/29/adobe-flex-in-ubuntu-develop-compile-and-run/

Then add the lib directory at the same level as com

etienne@etienne-laptop:~/ff/Dropbox/Xchange/dashboard/flash/sounds/dynamic_mp3_player_2.1/dynamic_mp3_player_2/src$ ls -ltrR
.:
total 52
-rw-r--r-- 1 etienne etienne   408 2011-01-24 14:20 MP3PlayerUI.mxml
-rw-r--r-- 1 etienne etienne  1866 2011-01-24 14:20 MP3PlayerUIClass.as
drwxr-xr-x 3 etienne etienne    80 2011-01-24 15:32 com
drwxr-xr-x 3 etienne etienne    72 2011-01-26 12:49 org
-rw-r--r-- 1 etienne etienne 43910 2011-01-26 18:08 MP3PlayerUI.swf

./com:
total 0
drwxr-xr-x 4 etienne etienne 104 2011-01-24 15:32 kelvinluck

./com/kelvinluck:
total 0
drwxr-xr-x 3 etienne etienne 72 2011-01-24 15:32 audiotools
drwxr-xr-x 2 etienne etienne 80 2011-01-24 15:32 audio

./com/kelvinluck/audiotools:
total 0
drwxr-xr-x 2 etienne etienne 112 2011-01-24 15:32 view

./com/kelvinluck/audiotools/view:
total 8
-rw-r--r-- 1 etienne etienne 2012 2011-01-24 14:20 WavViewer.as
-rw-r--r-- 1 etienne etienne 3144 2011-01-24 14:20 WavRenderer.as

./com/kelvinluck/audio:
total 4
-rw-r--r-- 1 etienne etienne 2873 2011-01-24 14:20 MP3Player.as

./org:
total 0
drwxr-xr-x 3 etienne etienne 72 2011-01-26 12:49 audiofx

./org/audiofx:
total 0
drwxr-xr-x 2 etienne etienne 240 2011-01-26 12:49 mp3

./org/audiofx/mp3:
total 32
-rw-r--r-- 1 etienne etienne 4985 2011-01-24 14:20 MP3FileReferenceLoader.as
-rw-r--r-- 1 etienne etienne 1466 2011-01-24 14:20 ByteArraySegment.as
-rw-r--r-- 1 etienne etienne 2028 2011-01-24 14:20 MP3SoundEvent.as
-rw-r--r-- 1 etienne etienne 8126 2011-01-24 14:20 MP3Parser.as
-rw-r--r-- 1 etienne etienne 7521 2011-01-24 14:20 SoundClassSwfByteCode.as

and finally run 
mxmlc MP3PlayerUI.mxml

This produces the much expected MP3PlayerUI.swf

My God, I am compiling Flash from Ubuntu, I can&#039;t believe it. Now I will go to the AS3 code. Thanks Kelvin for sharing the code.</description>
		<content:encoded><![CDATA[<p>I got it to compile, I post it just for other newbies in town.</p>
<p>First install Flex SDK (I am using Kubuntu):</p>
<p><a href="http://www.dotkam.com/2009/03/29/adobe-flex-in-ubuntu-develop-compile-and-run/" rel="nofollow">http://www.dotkam.com/2009/03/29/adobe-flex-in-ubuntu-develop-compile-and-run/</a></p>
<p>Then add the lib directory at the same level as com</p>
<p>etienne@etienne-laptop:~/ff/Dropbox/Xchange/dashboard/flash/sounds/dynamic_mp3_player_2.1/dynamic_mp3_player_2/src$ ls -ltrR<br />
.:<br />
total 52<br />
-rw-r--r-- 1 etienne etienne   408 2011-01-24 14:20 MP3PlayerUI.mxml<br />
-rw-r--r-- 1 etienne etienne  1866 2011-01-24 14:20 MP3PlayerUIClass.as<br />
drwxr-xr-x 3 etienne etienne    80 2011-01-24 15:32 com<br />
drwxr-xr-x 3 etienne etienne    72 2011-01-26 12:49 org<br />
-rw-r--r-- 1 etienne etienne 43910 2011-01-26 18:08 MP3PlayerUI.swf</p>
<p>./com:<br />
total 0<br />
drwxr-xr-x 4 etienne etienne 104 2011-01-24 15:32 kelvinluck</p>
<p>./com/kelvinluck:<br />
total 0<br />
drwxr-xr-x 3 etienne etienne 72 2011-01-24 15:32 audiotools<br />
drwxr-xr-x 2 etienne etienne 80 2011-01-24 15:32 audio</p>
<p>./com/kelvinluck/audiotools:<br />
total 0<br />
drwxr-xr-x 2 etienne etienne 112 2011-01-24 15:32 view</p>
<p>./com/kelvinluck/audiotools/view:<br />
total 8<br />
-rw-r--r-- 1 etienne etienne 2012 2011-01-24 14:20 WavViewer.as<br />
-rw-r--r-- 1 etienne etienne 3144 2011-01-24 14:20 WavRenderer.as</p>
<p>./com/kelvinluck/audio:<br />
total 4<br />
-rw-r--r-- 1 etienne etienne 2873 2011-01-24 14:20 MP3Player.as</p>
<p>./org:<br />
total 0<br />
drwxr-xr-x 3 etienne etienne 72 2011-01-26 12:49 audiofx</p>
<p>./org/audiofx:<br />
total 0<br />
drwxr-xr-x 2 etienne etienne 240 2011-01-26 12:49 mp3</p>
<p>./org/audiofx/mp3:<br />
total 32<br />
-rw-r--r-- 1 etienne etienne 4985 2011-01-24 14:20 MP3FileReferenceLoader.as<br />
-rw-r--r-- 1 etienne etienne 1466 2011-01-24 14:20 ByteArraySegment.as<br />
-rw-r--r-- 1 etienne etienne 2028 2011-01-24 14:20 MP3SoundEvent.as<br />
-rw-r--r-- 1 etienne etienne 8126 2011-01-24 14:20 MP3Parser.as<br />
-rw-r--r-- 1 etienne etienne 7521 2011-01-24 14:20 SoundClassSwfByteCode.as</p>
<p>and finally run<br />
mxmlc MP3PlayerUI.mxml</p>
<p>This produces the much expected MP3PlayerUI.swf</p>
<p>My God, I am compiling Flash from Ubuntu, I can't believe it. Now I will go to the AS3 code. Thanks Kelvin for sharing the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eracer</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-57150</link>
		<dc:creator>eracer</dc:creator>
		<pubDate>Wed, 26 Jan 2011 14:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-57150</guid>
		<description>Hi Kelvin,

I am discovering Flash with your example because it is using the pitch change that I need.
I am a newbee in Flash, and it looks like an FLA file is missing in your sources. 
I know my question is very basic, but are your source complete ?</description>
		<content:encoded><![CDATA[<p>Hi Kelvin,</p>
<p>I am discovering Flash with your example because it is using the pitch change that I need.<br />
I am a newbee in Flash, and it looks like an FLA file is missing in your sources.<br />
I know my question is very basic, but are your source complete ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Text to Speech Fun &#171; BobTheCoolGuy</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-55448</link>
		<dc:creator>Text to Speech Fun &#171; BobTheCoolGuy</dc:creator>
		<pubDate>Fri, 07 Jan 2011 23:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-55448</guid>
		<description>[...] from a ByteArray. This opens up the potential for all kinds of cool things, and I came across one example of this from Kevin Luck, a class that plays back sounds at different [...]</description>
		<content:encoded><![CDATA[<p>[...] from a ByteArray. This opens up the potential for all kinds of cool things, and I came across one example of this from Kevin Luck, a class that plays back sounds at different [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mudasir</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-55376</link>
		<dc:creator>Mudasir</dc:creator>
		<pubDate>Fri, 07 Jan 2011 07:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-55376</guid>
		<description>Hi Kevin:

Good example..... but when we are changing speed, the pitch of voice is also changed. So, how to change speed of voice (tempo) by keeping pitch of voice constant and vice-versa. Please reply me as soon as possible.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Kevin:</p>
<p>Good example..... but when we are changing speed, the pitch of voice is also changed. So, how to change speed of voice (tempo) by keeping pitch of voice constant and vice-versa. Please reply me as soon as possible.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-50752</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Wed, 24 Nov 2010 00:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-50752</guid>
		<description>Hi Kevin,

Thank you for your code!

Here are a few issues I ran into / caveats:

1) For the stuttering when looping, it is indeed due to fact that MP3s have to be specially massaged to loop properly.  The tool mp3loop.exe (see earlier message) in conjunction with Audacity worked well for me.

2) The stop() method didn&#039;t work for me until I added weak referencing to the event listeners, like so:

_dynamicSound.addEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData, false, 0, true);

(...)

_dynamicSound.removeEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData, false);

3) One weirdness, on Android:

int(mp3.length * 44.1) != bytes.length / 8

Here I am referring to the old version of the code.  Those two statements are equivalent on the desktop BUT not on Android (they&#039;re NEARLY the same on Android -- I think it might be a bug with AIR Android).

4) int(_phase - startPosition) * 8 is faster with bitshifting: int(_phase - startPosition) &lt;&lt; 3</description>
		<content:encoded><![CDATA[<p>Hi Kevin,</p>
<p>Thank you for your code!</p>
<p>Here are a few issues I ran into / caveats:</p>
<p>1) For the stuttering when looping, it is indeed due to fact that MP3s have to be specially massaged to loop properly.  The tool mp3loop.exe (see earlier message) in conjunction with Audacity worked well for me.</p>
<p>2) The stop() method didn't work for me until I added weak referencing to the event listeners, like so:</p>
<p>_dynamicSound.addEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData, false, 0, true);</p>
<p>(...)</p>
<p>_dynamicSound.removeEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData, false);</p>
<p>3) One weirdness, on Android:</p>
<p>int(mp3.length * 44.1) != bytes.length / 8</p>
<p>Here I am referring to the old version of the code.  Those two statements are equivalent on the desktop BUT not on Android (they're NEARLY the same on Android -- I think it might be a bug with AIR Android).</p>
<p>4) int(_phase - startPosition) * 8 is faster with bitshifting: int(_phase - startPosition) &lt;&lt; 3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rzv</title>
		<link>http://www.kelvinluck.com/2009/03/second-steps-with-flash-10-audio-programming/comment-page-1/#comment-45688</link>
		<dc:creator>Rzv</dc:creator>
		<pubDate>Mon, 20 Sep 2010 13:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kelvinluck.com/?p=637#comment-45688</guid>
		<description>Hi Kelvin, 

It&#039;s great what you did in this experiment. And Its great that you answer to other user&#039;s questions. Big ups!</description>
		<content:encoded><![CDATA[<p>Hi Kelvin, </p>
<p>It's great what you did in this experiment. And Its great that you answer to other user's questions. Big ups!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.482 seconds -->
<!-- Cached page served by WP-Cache -->

