PlaybackBufferConfig

data class PlaybackBufferConfig(val maxBytes: Long = 64L * 1024 * 1024, val maxDuration: Duration = 60.seconds, val devicePrimeDuration: Duration = 80.milliseconds)

Retention and priming knobs for the transport space.kodio.core.transport.PlaybackBuffer.

Out-of-range seek policy is not configurable in v1: targets outside the retained window return SeekResult.Unsupported (known-finite ahead-of-ingest seeks are accepted as a pending cursor; see transport seek semantics).

Constructors

Link copied to clipboard
constructor(maxBytes: Long = 64L * 1024 * 1024, maxDuration: Duration = 60.seconds, devicePrimeDuration: Duration = 80.milliseconds)

Properties

Link copied to clipboard

How much PCM to prime into the device after a seek before restarting.

Link copied to clipboard

Hard cap for growable storage; also the ring capacity upper bound.

Link copied to clipboard

Alternative capacity cap: min(maxBytes, duration × rate × frame).