encodeToByteArray
Serializes this device to a binary blob suitable for wire transfer or storage.
Decoding with ByteArray.decodeAsAudioDevice on the same bytes yields a device with the same id, name, type, and format support.
Serializes this format to a binary blob suitable for wire transfer or storage.
Decoding with ByteArray.decodeAsAudioFormat on the same bytes yields an equal AudioFormat.
Serializes this playback session state to a binary blob.
Decoding with ByteArray.decodeAsAudioPlaybackState on the same bytes yields an equivalent state. For AudioPlaybackSession.State.Error, only the error message is preserved; the original exception type and stack trace are not round-tripped.
Serializes this recording session state to a binary blob.
Decoding with ByteArray.decodeAsAudioRecordingState on the same bytes yields an equivalent state. For AudioRecordingSession.State.Error, only the error message is preserved; the original exception type and stack trace are not round-tripped.