Constructor

new()

Methods

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

inlinegetDuration(resource:AudioResource):Float

Available on clay

@:value({ 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):AudioHandle

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

inlinegetDuration(audio:AudioResource):Float

Available on headless, unity