CameraAvStreamManagementTrait.AudioStreamStruct

class CameraAvStreamManagementTrait.AudioStreamStruct : ClusterStruct


Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

AudioStreamStruct(
    audioStreamId: UShort,
    streamUsage: CameraAvStreamManagementTrait.StreamUsageEnum,
    audioCodec: CameraAvStreamManagementTrait.AudioCodecEnum,
    channelCount: UByte,
    sampleRate: UInt,
    bitRate: UInt,
    bitDepth: UByte,
    referenceCount: UByte
)

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public constructors

AudioStreamStruct

AudioStreamStruct(
    audioStreamId: UShort,
    streamUsage: CameraAvStreamManagementTrait.StreamUsageEnum = StreamUsageEnum.Internal,
    audioCodec: CameraAvStreamManagementTrait.AudioCodecEnum = AudioCodecEnum.OPUS,
    channelCount: UByte,
    sampleRate: UInt,
    bitRate: UInt,
    bitDepth: UByte,
    referenceCount: UByte
)

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

audioStreamId

val audioStreamId: UShort

bitDepth

val bitDepth: UByte

bitRate

val bitRate: UInt

channelCount

val channelCount: UByte

referenceCount

val referenceCount: UByte

sampleRate

val sampleRate: UInt