Prefered method for looping sound flash as3

后端 未结 6 1973
北荒
北荒 2020-12-30 12:59

I\'m having some issues with looping a sound in flash AS3, in that when I tell the sound to loop I get a slight delay at the end/beginning of the audio.

The audio is

6条回答
  •  被撕碎了的回忆
    2020-12-30 13:57

    I use this great tool: http://www.compuphase.com/mp3/mp3loop.zip

    You give it a WAV file and it returns an MP3 file which can be perfectly (and gaplessly!) played using Sound's standard play method - e.g. :

    var manyLoops:int = 1000*1000; // a Million is a lot :)
    mySound.play(0, manyLoops); 
    

    You can also take the output MP3 file and re-convert it to a WAV (using AudioCity for example) - then you have a gapless WAV (which can work great inside your FLA file)

    Hope it helps

提交回复
热议问题