BufferAudioSource

constructor(bufferCapacityMs: Int = 1000, latencyMs: Int = 100)

Parameters

bufferCapacityMs

capacity of the synthetic buffer in milliseconds.

latencyMs

extra buffering applied to setBuffer data to absorb producer jitter. Higher values avoid dropped data and glitches with irregular producers at the cost of latency. The delay is compensated in the frame timestamps, so it produces no av desync.