AudioDeviceChanged

data class AudioDeviceChanged(val detail: String) : PlaybackWarning

The audio device restarted, changed or was replaced.

Emitted when the sink reports AudioSinkEvent.DeviceLost (detail prefixed "device lost: ") or AudioSinkEvent.DeviceChanged. It reports; it does not mean the engine recovered. Nothing rebuilds the sink or reopens the device yet, so treat this as an observation rather than a repair. AudioSinkEventTest pins exactly which events reach here and which are dropped.

Constructors

Link copied to clipboard
constructor(detail: String)

Properties

Link copied to clipboard
Link copied to clipboard
open val fields: Map<String, String>

The warning as key and value pairs, for a structured log sink.

Link copied to clipboard
open override val message: String

Functions

Link copied to clipboard
override fun toString(): String

The type and the message, with every URI cut to its file name, as for PlaybackError.