Constructor

new()

Methods

load(path:String, ?options:Null<LoadAudioOptions>, _done:AudioResource ‑> Void):Void

createFromSamplesBuffer(buffer:Float32Array, samples:Int, channels:Int, sampleRate:Float, interleaved:Bool):AudioResource

inlinegetDuration(resource:AudioResource):Float

Available on clay

@:value({ bus : 0, loop : false, position : 0, pitch : 1, pan : 0, volume : 0.5 })play(audio:AudioResource, volume:Float = 0.5, pan:Float = 0, pitch:Float = 1, position:Float = 0, loop:Bool = false, bus:Int = 0):AudioHandle

Available on clay

setPosition(handle:AudioHandle, position:Float):Void

addFilter(bus:Int, filter:AudioFilter, onReady:(bus:Int) ‑> Void):Void

removeFilter(bus:Int, filterId:Int):Void

Available on clay

filterParamsChanged(bus:Int, filterId:Int):Void

Available on clay

inlinegetDuration(audio:AudioResource):Float

Available on headless, unity

@:value({ channel : 0, loop : false, position : 0, pitch : 1, pan : 0, volume : 0.5 })play(audio:AudioResource, volume:Float = 0.5, pan:Float = 0, pitch:Float = 1, position:Float = 0, loop:Bool = false, channel:Int = 0):AudioHandle

Available on headless

removeFilter(channel:Int, filterId:Int):Void

Available on headless

filterParamsChanged(channel:Int, filterId:Int):Void

Available on headless