Constructor

new()

Variables

ctx:AudioContext

destination:AudioNode

read onlymasterGain:GainNode

Methods

dispose():Void

inlinegetBuffer(channels:Int, sampleCount:Int, rate:Int):AudioBuffer

Returns free AudioBuffer instance corresponding to sample count, amount of channels and sample-rate.

getEffectDriver(type:String):EffectDriver<Dynamic>

inlinegetGain():GainNode

Returns free Gain node

inlineputBuffer(buf:AudioBuffer):Void

Puts AudioBuufer back to it's pool.

inlineputGain(gain:GainNode):Void

queueBuffer(source:SourceHandle, buffer:BufferHandle, sampleStart:Int, endOfStream:Bool):Void

setBufferData(buffer:BufferHandle, data:Bytes, size:Int, format:SampleFormat, channelCount:Int, samplingRate:Int):Void

setListenerParams(position:Vector, direction:Vector, up:Vector, ?velocity:Vector):Void

setMasterVolume(value:Float):Void

setSourceVolume(source:SourceHandle, value:Float):Void

update():Void