AudioOutput
Constructor
function new(options:AudioOptions)Opens the selected device. An empty device identifier selects the default.
Static methods
function hxnAdopt(hxnRaw:Handle):AudioOutputAn object for a value the library returned.
function offline(options:AudioOptions):AudioOutputProperties
var hxnRaw:HandleMethods
function play(buffer:AudioBuffer, options:PlayOptions):AudioVoicefunction stream(sampleRate:UInt, channels:UInt, capacityFrames:UInt, options:PlayOptions):AudioStreamfunction bus(index:UInt):AudioBusBus zero is the master; every other bus initially routes to it.
function render(destination:Bytes):VoidRenders an offline output only. Byte length must be a whole stereo frame.
function metrics():AudioMetricsfunction pause():Voidfunction resume():Voidfunction selectDevice(id:String):VoidReopens on the control thread, retaining the mixer and its queued audio.
function same(other:Null<AudioOutput>):BoolWhether other holds the value this does. Two objects can: each time the library returns the value, a new object gets a share of it.
function weak():AudioOutputWeakA reference to the value that does not keep it alive.
function close():VoidGives up this object's share of the value now. The collector does it otherwise. The value lives while anything else holds a share. Using this object afterwards throws.