Constructor

@:value({ context : null, stream : null })new(?stream:URLRequest, ?context:SoundLoaderContext)

Variables

read onlybytesLoaded:Int

read onlybytesTotal:Int

read onlyid3:ID3Info

read onlyisBuffering:Bool

read onlylength:Float

read onlyurl:String

Methods

@:value({ context : null })load(stream:URLRequest, ?context:SoundLoaderContext):Void

@:value({ forcePlayAsMusic : false })@:require(flash11)loadCompressedDataFromByteArray(bytes:ByteArray, bytesLength:Int, forcePlayAsMusic:Bool = false):Void

@:value({ sampleRate : 44100, stereo : true, format : null })@:require(flash11)loadPCMFromByteArray(bytes:ByteArray, samples:Int, ?format:String, stereo:Bool = true, sampleRate:Float = 44100):Void

@:value({ sndTransform : null, loops : 0, startTime : 0.0 })play(startTime:Float = 0.0, loops:Int = 0, ?sndTransform:SoundTransform):SoundChannel

Static methods

Inherited Variables

Inherited Methods

Defined by EventDispatcher

@:value({ useWeakReference : false, priority : 0, useCapture : false })addEventListener(type:String, listener:Dynamic‑>Void, useCapture:Bool = false, priority:Int = 0, useWeakReference:Bool = false):Void

@:value({ useCapture : false })removeEventListener(type:String, listener:Dynamic‑>Void, useCapture:Bool = false):Void