ringCapacity property

int ringCapacity
final

Frames that the ring holds before the producer drops frames.

A capacity of 512 at the default hop gives approximately six seconds of slack. Therefore, an application that stalls for a short time loses nothing. The producer never blocks to wait for room, because a stall of the audio thread is an audible glitch and not a dropped frame.

Implementation

final int ringCapacity;