class PcmFormat

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

Format supporting PCM audio. Frames are made up of `number_of_channels` samples

which have `valid_bits_per_sample` bits of most-significant (left-justified) data within

`bytes_per_sample` bytes.

For more detailed information see [Audio Driver Streaming Interface](https://fuchsia.dev/fuchsia-src/concepts/drivers/driver_architectures/audio_drivers/audio_streaming).

Public Methods

void PcmFormat (Storage_ storage)
void PcmFormat (uint8_t number_of_channels, ::fuchsia_hardware_audio::SampleFormat sample_format, uint8_t bytes_per_sample, uint8_t valid_bits_per_sample, uint32_t frame_rate)
void PcmFormat ()

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

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

void PcmFormat (PcmFormat && )

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

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

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

PcmFormat & operator= (const PcmFormat & other)
bool operator== (const PcmFormat & other)
bool operator!= (const PcmFormat & other)
uint8_t number_of_channels ()

Number of channels.

uint8_t & number_of_channels ()

Number of channels.

PcmFormat & number_of_channels (uint8_t value)

Number of channels.

::fuchsia_hardware_audio::SampleFormat sample_format ()

The format of all samples.

::fuchsia_hardware_audio::SampleFormat & sample_format ()

The format of all samples.

PcmFormat & sample_format (::fuchsia_hardware_audio::SampleFormat value)

The format of all samples.

uint8_t bytes_per_sample ()

Bytes allocated to hold a sample, must be greater than or equal to the valid sample size in

`valid_bits_per_sample`.

uint8_t & bytes_per_sample ()

Bytes allocated to hold a sample, must be greater than or equal to the valid sample size in

`valid_bits_per_sample`.

PcmFormat & bytes_per_sample (uint8_t value)

Bytes allocated to hold a sample, must be greater than or equal to the valid sample size in

`valid_bits_per_sample`.

uint8_t valid_bits_per_sample ()

Number of valid bits in a sample, must be less than or equal to `bytes_per_sample * 8`.

If less than `bytes_per_sample * 8`, the valid bits (those containing audio)

are left justified, and any additional bits must be ignored by the

receiver.

uint8_t & valid_bits_per_sample ()

Number of valid bits in a sample, must be less than or equal to `bytes_per_sample * 8`.

If less than `bytes_per_sample * 8`, the valid bits (those containing audio)

are left justified, and any additional bits must be ignored by the

receiver.

PcmFormat & valid_bits_per_sample (uint8_t value)

Number of valid bits in a sample, must be less than or equal to `bytes_per_sample * 8`.

If less than `bytes_per_sample * 8`, the valid bits (those containing audio)

are left justified, and any additional bits must be ignored by the

receiver.

uint32_t frame_rate ()

The frame rate for all samples.

uint32_t & frame_rate ()

The frame rate for all samples.

PcmFormat & frame_rate (uint32_t value)

The frame rate for all samples.

void PcmFormat (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits