hxn

AudioMetrics

Constructor

function new(state:AudioState, error:String, renderedFrames:Int64, activeVoices:UInt, starvedFrames:Int64, clippedSamples:Int64, peak:Float, device:String, deviceRate:UInt, deviceChannels:UInt, latencySeconds:Float, callbacks:Int64, xruns:Int64, event:AudioDeviceEvent)

Parameter: latencySeconds Backend timestamp estimate plus queued renderer frames; zero until known.

Static methods

function hxnRead(input:BytesInput):AudioMetrics

Reads what the library wrote.

Properties

var state:AudioState
var error:String
var renderedFrames:Int64
var activeVoices:UInt
var starvedFrames:Int64
var clippedSamples:Int64
var peak:Float
var device:String
var deviceRate:UInt
var deviceChannels:UInt
var latencySeconds:Float

Backend timestamp estimate plus queued renderer frames; zero until known.

var callbacks:Int64
var xruns:Int64

Methods

function hxnWrite(out:BytesBuffer):Void

Writes the fields in order, as the library reads them.