MacosAudioPlaybackSession
class MacosAudioPlaybackSession(requestedDevice: AudioDevice.Output? = null, bufferDurationSec: Double = 0.05, bufferCount: Int = 5) : BaseAudioPlaybackSession
macOS AudioQueue playback fed by PlaybackBuffer transport.
Seek uses seek-quiesce + AudioQueueStop(true) (not channel-closing MacosAudioQueue.markNotRunning, and not AudioQueueFlush which is EOS drain).
Constructors
Link copied to clipboard
constructor(requestedDevice: AudioDevice.Output? = null, bufferDurationSec: Double = 0.05, bufferCount: Int = 5)
Properties
Link copied to clipboard
Currently retained seekable window. Empty if nothing buffered. Defaults to a frozen empty range for unmigrated sessions.
Link copied to clipboard
Transport media time, best-effort while playing. Defaults to a frozen Duration.ZERO for unmigrated sessions.
Link copied to clipboard
A flow that emits the current state of the playback.
Link copied to clipboard
In-tree platforms that return true from useTransportPlayback publish real bufferedRange / transport seek. External subclassers keep the default.