Playing MP3 data using the Flash sound “hack”
A recurrent question that I see after writing the article “How to make actionscript 3 play generated pcm wave data” is how would one do this with MP3 data.
I spent a while hacking around to see if it could be done, and came up with this.
Not much time to write anything about this, but I thought that I should just post up the code. It requires an mp3 called “sample.mp3″ in the “media” folder in order to work. There should be a certain amount of resilience to errors in the MPEG stream.
We’re not opening up comments at the moment, so please post back to the original pcm wave data article if you have any comments.
