maxl0rd/standingwave3 — Issue #16: Complete event not firing with audio player and Audio Clipping
Author: loachman
Created: 2011-10-14 21:33:31+00:00
State: open

I cannot get the complete event to fire. I have a button that calls the following code.

private function playSinewave(e:Event):void{
e.target.enabled = false;
sinewave = new SineSource(new AudioDescriptor(),5,440,1.0);
player.addEventListener(Event.COMPLETE,onPlaybackComplete);
player.play(sinewave);
}

private function onPlaybackComplete(e:Event):void{
sinewave_play_btn.enabled = true;
}

Also with this code the output Panel Repeatedly traces AUDIO CLIPPING. And at times it will Stutter real bad and sometimes even freeze up the player and issue a 15 second timeout warning.