class DaiFormat

Defined at line 2254 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/natural_types.h

DAI format. Frames are made up of `number_of_channels` samples which have `bits_per_sample` bits

of data within `bits_per_slot` arranged in `frame_format`. For more detailed information see

[Digital Audio Interface](https://fuchsia.dev/fuchsia-src/concepts/drivers/driver_architectures/audio_drivers/audio_dai).

Public Methods

void DaiFormat (Storage_ storage)
void DaiFormat (uint32_t number_of_channels, uint64_t channels_to_use_bitmask, ::fuchsia_hardware_audio::DaiSampleFormat sample_format, ::fuchsia_hardware_audio::DaiFrameFormat frame_format, uint32_t frame_rate, uint8_t bits_per_slot, uint8_t bits_per_sample)
void DaiFormat ()

Default constructs a |DaiFormat| only if all of its members are default constructible.

Defined at line 2264 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/natural_types.h

void DaiFormat (DaiFormat && )

Defined at line 2267 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/natural_types.h

void DaiFormat (const DaiFormat & other)
DaiFormat & operator= (DaiFormat && )

Defined at line 2268 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/cpp/fidl/fuchsia.hardware.audio/cpp/natural_types.h

DaiFormat & operator= (const DaiFormat & other)
bool operator== (const DaiFormat & other)
bool operator!= (const DaiFormat & other)
uint32_t number_of_channels ()

Number of channels.

Must be 2, if `frame_format` is DaiFrameFormatStandard::I2S, STEREO_LEFT or STEREO_RIGHT.

uint32_t & number_of_channels ()

Number of channels.

Must be 2, if `frame_format` is DaiFrameFormatStandard::I2S, STEREO_LEFT or STEREO_RIGHT.

DaiFormat & number_of_channels (uint32_t value)

Number of channels.

Must be 2, if `frame_format` is DaiFrameFormatStandard::I2S, STEREO_LEFT or STEREO_RIGHT.

uint64_t channels_to_use_bitmask ()

Sets which channels are active via a bitmask.

The least significant bit corresponds to channel index 0.

Must not set bits beyond the least-significant `number_of_channels` bits.

uint64_t & channels_to_use_bitmask ()

Sets which channels are active via a bitmask.

The least significant bit corresponds to channel index 0.

Must not set bits beyond the least-significant `number_of_channels` bits.

DaiFormat & channels_to_use_bitmask (uint64_t value)

Sets which channels are active via a bitmask.

The least significant bit corresponds to channel index 0.

Must not set bits beyond the least-significant `number_of_channels` bits.

::fuchsia_hardware_audio::DaiSampleFormat sample_format ()

The sample format of all samples.

::fuchsia_hardware_audio::DaiSampleFormat & sample_format ()

The sample format of all samples.

DaiFormat & sample_format (::fuchsia_hardware_audio::DaiSampleFormat value)

The sample format of all samples.

const ::fuchsia_hardware_audio::DaiFrameFormat & frame_format ()

The frame format of all samples.

::fuchsia_hardware_audio::DaiFrameFormat & frame_format ()

The frame format of all samples.

DaiFormat & frame_format (::fuchsia_hardware_audio::DaiFrameFormat value)

The frame format of all samples.

uint32_t frame_rate ()

The frame rate for all samples.

uint32_t & frame_rate ()

The frame rate for all samples.

DaiFormat & frame_rate (uint32_t value)

The frame rate for all samples.

uint8_t bits_per_slot ()

The bits per slot for all channels.

uint8_t & bits_per_slot ()

The bits per slot for all channels.

DaiFormat & bits_per_slot (uint8_t value)

The bits per slot for all channels.

uint8_t bits_per_sample ()

The bits per sample for each channel.

Must be smaller than `bits_per_slot` for all samples to fit.

uint8_t & bits_per_sample ()

The bits per sample for each channel.

Must be smaller than `bits_per_slot` for all samples to fit.

DaiFormat & bits_per_sample (uint8_t value)

The bits per sample for each channel.

Must be smaller than `bits_per_slot` for all samples to fit.

void DaiFormat (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits