| SoundFX |
Provides an easy way to transform audio output in real time with a syntax familiar from display object filters
var sound : SoundFX = new SoundFX( new URLRequest( "music.mp3" ) );
sound.filters = [ new CutoffFilter( 12000 ) ];
sound.play( );
SoundFX also provides greated control over buffering and precise seeking
var sound : SoundFX = new SoundFX( null, null, 3 ); // 3 seconds need to be loaded before playback starts
sound.load( new URLRequest( "music.mp3" ) );
sound.play( );
// a bit later.. |