CoreAudioSinkFactory

Creates CoreAudioSink instances.

Reached through AppleOutputBackend, which is what goes into PlayerConfig.backends.output: that object pairs this factory with the clock the engine reads, so the two cannot disagree. Constructing one directly is for a test or a custom assembly, and the clock still has to be AppleHostClock; see the check in CoreAudioSink.

Constructors

Link copied to clipboard
constructor(clock: MonotonicClock = AppleHostClock)

Preserves the original clock-first API and uses KitePlayer's managed playback policy.

constructor(policy: AppleAudioSessionPolicy, clock: MonotonicClock = AppleHostClock)

Selects who owns the iOS audio session for every sink this factory creates.

Properties

Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
open suspend override fun create(): AudioSink
Link copied to clipboard
open override fun outputChannelCount(): Int?

The current route's count on iOS (#466); macOS does not say yet.