That's basically what Andre Michelle is doing with his code at
http://blog.andre-michelle.com/2010/playback-mp3-loop-gapless/#more-590 ,
Andrew.
ja
http://vispo.com
----- Original Message -----
From: "Andrew Murphy" <[email protected]>
To: "'Flash Coders List'" <[email protected]>
Sent: Thursday, April 29, 2010 6:28 AM
Subject: RE: [Flashcoders] gapless looping of external mp3's
This might work to achieve gapless looping:
Once you've loaded the audio assets (an mp3 file, swf file library assets,
etc.), copy the raw sound data into a ByteArray. Then to play it back you
create a duplicate of that ByteArray and feed it to a new Sound object
when
it throws it's SampleDataEvent event. Once you've used up the ByteArray,
duplicate it again and keep feeding it to the Sound object.
I've been messing around with this, off and on, for a while to try and
loop
a simple sine wave audio data that I've generated. It works pretty well,
except that I always get a little 'pop' whenever the next loop starts..
possibly because the phase of the end of the previous loop doesn't match
the
start of the next one.
------------------------------
Andrew Murphy
Interactive Media Developer
[email protected]
Delvinia
370 King Street West, 5th Floor, Box 4
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830
W www.delvinia.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders