Static methods

staticinlineformatBytes(format:SampleFormat):Int

Variables

read onlychannels:Int

read onlyduration:Float

read onlysamples:Int

read onlysamplingRate:Int

Methods

decode(out:Bytes, outPos:Int, sampleStart:Int, sampleCount:Int):Void

isLoading():Bool

load(onEnd:() ‑> Void):Void

Some platforms might require some data to be loaded before we can start decoding. Use load() and wait for onEnd to make sure that the sound data and the correct number of samples is available. onEnd() might be called back immediately if the data is already available.

resample(rate:Int, format:SampleFormat, channels:Int):Data

@:noDebugresampleBuffer(out:Bytes, outPos:Int, input:Bytes, inPos:Int, rate:Int, format:SampleFormat, channels:Int, samples:Int):Void