<?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"
	>
<channel>
	<title>Comments on: How to load MP3 files from a FileReference</title>
	<atom:link href="http://www.flexiblefactory.co.uk/flexible/index.php?feed=rss2&#038;p=46" rel="self" type="application/rss+xml" />
	<link>http://www.flexiblefactory.co.uk/flexible/?p=46</link>
	<description></description>
	<pubDate>Fri, 10 Sep 2010 19:35:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Marko</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-14553</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Tue, 22 Jun 2010 22:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-14553</guid>
		<description>Hi, I'm using this to load sound from ByteArray. And I'm using changes made by Jerry and Anthony. But I'm getting an error: Error #2030: End of file was encountered. at readMultiByte()
I guess it has something to do with this line of code: var str:String=mp3Data.readMultiByte(3,"us-ascii");
I guess this could mean that it wasn't encoded properly or that my file is too large.
Any suggestions?</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m using this to load sound from ByteArray. And I&#8217;m using changes made by Jerry and Anthony. But I&#8217;m getting an error: Error #2030: End of file was encountered. at readMultiByte()<br />
I guess it has something to do with this line of code: var str:String=mp3Data.readMultiByte(3,&#8221;us-ascii&#8221;);<br />
I guess this could mean that it wasn&#8217;t encoded properly or that my file is too large.<br />
Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 张远龙(Zhang Yuanlong)</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-13971</link>
		<dc:creator>张远龙(Zhang Yuanlong)</dc:creator>
		<pubDate>Tue, 15 Jun 2010 04:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-13971</guid>
		<description>Greetings!I'm a new learner of AS3.Your explanations of \How to load MP3 files from a FileReference\ are faily pellucid.Very well.But could you tell me how to create an in-memory image of a swf with the loaded sound data from a ByteArray Object ?And how to make it(the in-memory image) related to the FileReference Object?Does actionscript have built-in functions to open an mp3 file and play it?</description>
		<content:encoded><![CDATA[<p>Greetings!I&#8217;m a new learner of AS3.Your explanations of \How to load MP3 files from a FileReference\ are faily pellucid.Very well.But could you tell me how to create an in-memory image of a swf with the loaded sound data from a ByteArray Object ?And how to make it(the in-memory image) related to the FileReference Object?Does actionscript have built-in functions to open an mp3 file and play it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexx</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-11619</link>
		<dc:creator>Alexx</dc:creator>
		<pubDate>Thu, 29 Apr 2010 11:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-11619</guid>
		<description>Hi,

Really nice stuff here :)
I had problems with an mp3 file wich wasn't loading properly (truncated duration), and now that's working !

But I've noticed something else : in some parts of my sound, I have a perfect 0 volume wave part in the original file, and this gives a glitch in the converted sound

How could I fix that ? Maybe having a perfectly linear sound wave at zero is not allowed...

You will find a raw wav version of this file and its converted result here : http://alexx.krehmen.free.fr/mp3_bug/

the glitch can be heard near the end of the sound

Anyway, thanks for this great tool</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Really nice stuff here <img src='http://www.flexiblefactory.co.uk/flexible/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I had problems with an mp3 file wich wasn&#8217;t loading properly (truncated duration), and now that&#8217;s working !</p>
<p>But I&#8217;ve noticed something else : in some parts of my sound, I have a perfect 0 volume wave part in the original file, and this gives a glitch in the converted sound</p>
<p>How could I fix that ? Maybe having a perfectly linear sound wave at zero is not allowed&#8230;</p>
<p>You will find a raw wav version of this file and its converted result here : <a href="http://alexx.krehmen.free.fr/mp3_bug/" rel="nofollow">http://alexx.krehmen.free.fr/mp3_bug/</a></p>
<p>the glitch can be heard near the end of the sound</p>
<p>Anyway, thanks for this great tool</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 簡単なサウンドビジュアライザーを作ってみた。 &#124; RIAブログ</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-11336</link>
		<dc:creator>簡単なサウンドビジュアライザーを作ってみた。 &#124; RIAブログ</dc:creator>
		<pubDate>Fri, 23 Apr 2010 10:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-11336</guid>
		<description>[...] byteArrayをmp3に自分で変換するのには、ちょっと無理があり、MP3FileReferenceLoaderというライブラリを使わせて [...]</description>
		<content:encoded><![CDATA[<p>[...] byteArrayをmp3に自分で変換するのには、ちょっと無理があり、MP3FileReferenceLoaderというライブラリを使わせて [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ias inglbert</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-10890</link>
		<dc:creator>ias inglbert</dc:creator>
		<pubDate>Fri, 09 Apr 2010 01:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-10890</guid>
		<description>Nevermind, I think I figured out why. Flash estimates the length of the MP3 based upon the Content-Length header and your sample rate.  Currently there is a bug that occurs when you use anything other than 44.1 kHz.  My MP3s were 16kHz so it goofed on the duration calculations.  After I switched to a 44kHz, it fixed the issue.  More testing needs to be done.</description>
		<content:encoded><![CDATA[<p>Nevermind, I think I figured out why. Flash estimates the length of the MP3 based upon the Content-Length header and your sample rate.  Currently there is a bug that occurs when you use anything other than 44.1 kHz.  My MP3s were 16kHz so it goofed on the duration calculations.  After I switched to a 44kHz, it fixed the issue.  More testing needs to be done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ias inglbert</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-10870</link>
		<dc:creator>ias inglbert</dc:creator>
		<pubDate>Thu, 08 Apr 2010 21:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-10870</guid>
		<description>After running this code, has anyone else run into a situation where the sound.length has grown ~2.9 times larger?  This is after I go through this whole byteArray process.  Everything works and plays.  But the only issue is the sound length value is off by 290%.  I want to piece various sounds together and have it sound somewhat natural.  This is why the length is important for my case.  

I loaded a mp3 that went through this bytearaay process and displayed the sound.length as: 
36675.918367, then I loaded the mp3 normally and displayed the sound.length to be: 12636.009070.  They both play perfectly fine.</description>
		<content:encoded><![CDATA[<p>After running this code, has anyone else run into a situation where the sound.length has grown ~2.9 times larger?  This is after I go through this whole byteArray process.  Everything works and plays.  But the only issue is the sound length value is off by 290%.  I want to piece various sounds together and have it sound somewhat natural.  This is why the length is important for my case.  </p>
<p>I loaded a mp3 that went through this bytearaay process and displayed the sound.length as:<br />
36675.918367, then I loaded the mp3 normally and displayed the sound.length to be: 12636.009070.  They both play perfectly fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MP3FileReferenceLoader &#171; itamt</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-10335</link>
		<dc:creator>MP3FileReferenceLoader &#171; itamt</dc:creator>
		<pubDate>Sun, 21 Mar 2010 05:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-10335</guid>
		<description>[...] 详见作者博文。不过原作者并没有 上对ID3信息的解析，“Annoyingly, all the id3 tags get stripped using this method, and I’m far too lazy to parse these too. ”这里提供的是Mike Almond整合了ID3解析的源 。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 详见作者博文。不过原作者并没有 上对ID3信息的解析，“Annoyingly, all the id3 tags get stripped using this method, and I’m far too lazy to parse these too. ”这里提供的是Mike Almond整合了ID3解析的源 。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-9744</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Wed, 03 Mar 2010 03:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-9744</guid>
		<description>As an update from  -  replaced the FileReference with a URLStream object. I am now able to access and build the mp3Data byteArray using the PROGRESS event. And on COMPLETE, the mp3Data is ready for use. But I am unable to start playing as I build the mp3Data. I have added the PROGRESS event to the MP3FileLoader. I am also able to start playing as soon as I have enough segments. However, I think every time I sample I end up creating a new sound object so all the sounds play together and gives a garbled effect. Any pointers on how to tackle this - basically how to build the sound object incrementally ?</description>
		<content:encoded><![CDATA[<p>As an update from  -  replaced the FileReference with a URLStream object. I am now able to access and build the mp3Data byteArray using the PROGRESS event. And on COMPLETE, the mp3Data is ready for use. But I am unable to start playing as I build the mp3Data. I have added the PROGRESS event to the MP3FileLoader. I am also able to start playing as soon as I have enough segments. However, I think every time I sample I end up creating a new sound object so all the sounds play together and gives a garbled effect. Any pointers on how to tackle this - basically how to build the sound object incrementally ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-9724</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Tue, 02 Mar 2010 04:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-9724</guid>
		<description>This is a great post! I have being researching alternatives to loading an mp3 as a Sound object and this is bang on. But as a newbie to flash and AS I am not sure if there is any way to start playing the MP3 while it is still being streamed/loaded. Using the PROGRESS event on the fileRef wont work I guess since the data property isnt available until the file loads completely. Any suggestions would be great appreciated?</description>
		<content:encoded><![CDATA[<p>This is a great post! I have being researching alternatives to loading an mp3 as a Sound object and this is bang on. But as a newbie to flash and AS I am not sure if there is any way to start playing the MP3 while it is still being streamed/loaded. Using the PROGRESS event on the fileRef wont work I guess since the data property isnt available until the file loads completely. Any suggestions would be great appreciated?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.flexiblefactory.co.uk/flexible/?p=46#comment-9379</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 18 Feb 2010 07:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexiblefactory.co.uk/flexible/?p=46#comment-9379</guid>
		<description>Wow, this is amazing work!

Of course, we always want more :-)  Is there a way to use this technique without loading the entire mp3 file into memory?  For a track like a long DJ set, this can be a burden.

Thanks!!</description>
		<content:encoded><![CDATA[<p>Wow, this is amazing work!</p>
<p>Of course, we always want more <img src='http://www.flexiblefactory.co.uk/flexible/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Is there a way to use this technique without loading the entire mp3 file into memory?  For a track like a long DJ set, this can be a burden.</p>
<p>Thanks!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
