Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


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 = snd.play();
     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 kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012