CameraAvStreamManagementTrait.AudioCapabilitiesStruct

class CameraAvStreamManagementTrait.AudioCapabilitiesStruct : ClusterStruct


Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

AudioCapabilitiesStruct(
    maxNumberOfChannels: UByte,
    supportedCodecs: List<CameraAvStreamManagementTrait.AudioCodecEnum>,
    supportedSampleRates: List<UInt>,
    supportedBitDepths: List<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

AudioCapabilitiesStruct

AudioCapabilitiesStruct(
    maxNumberOfChannels: UByte,
    supportedCodecs: List<CameraAvStreamManagementTrait.AudioCodecEnum> = emptyList(),
    supportedSampleRates: List<UInt> = emptyList(),
    supportedBitDepths: List<UByte> = emptyList()
)

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

maxNumberOfChannels

val maxNumberOfChannelsUByte

supportedBitDepths

val supportedBitDepthsList<UByte>

supportedSampleRates

val supportedSampleRatesList<UInt>