The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 6 of 6

Thread: Looping audio without a pop

  1. #1
    Registered User

    Looping audio without a pop

    I have an audio clip that will loop fine when I play it in Audition, but when I try to loop it in Flash, it keeps doing a "pop" sound when it repeats.

    Right now I'm using this to play it and loop:
    public function playMe():void {
     channel =;
     channel.addEventListener(Event.SOUND_COMPLETE, loopMusic);
    public function loopMusic(e:Event):void
        if (channel != null)
            channel.removeEventListener(Event.SOUND_COMPLETE, loopMusic);
    It's based on this guy's example.

    Is there something I can do to avoid that popping when it loops?

  2. #2
    Are you sure the "pop" isn't in the sound file? Sometimes audio clips have a short silence in the beginning or end, that need to be trimmed before looping them. Use a sound edition software to make sure it's not in the sound. Besides that, I have never seem this problem in Flash. I hope it helps...
    Bruno Palermo
    When everything is catastrophic, thank the Gods things aren't worse!

  3. #3
    Registered User
    That's why I said it loops fine in Audition. If there was a gap in the file, then wouldn't I hear a pop when I play it in Audition?

  4. #4
    are you sure you cut the audio in the zero-crossing (the wave that intersects with the 0db line)?

    not doing so will often make a pop sound when looped..

  5. #5
    If you convert the audio file to 'wave' format and crack it open on a wave editor you might see it.

    I also had a similar incident in my game. The mp3 players I was using for test prior to inserting music into Flash were 'smart' enough to skip first couple seconds of the file, thus I never heard those crackles and pops.

    It really annoyed me that I ended up asking my sound guy to check again and sure enough, he found some noise in the very beginning and at the very end, which are fine if you play the music once but becomes a nightmare when you loop them through.
    Last edited by misterooga; June 26th, 2008 at 07:56 AM.

  6. #6
    how can i avoid the "pause" between each iteration of the sound?
    i'm using an external MP3 to play the loop, but i've tried several methods and so far, none has done the job...
    they indeed loop the sound...but there's a pause at the end of the sound...and the loop cut is noticeable.

    any idea how to fix it?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012