class SupportedEncodings

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

Supported formats for encoded audio.

This table defines a valid set of configurations. All fields are independent, which

implies a cross-product: any listed `channel_set` is supported at any listed

`frame_rate` for any listed `encoded_type`.

If a device supports multiple encoders with *different* rate/channel constraints

(e.g. AAC supports 48kHz but SBC only supports 44.1kHz), the device must

report them as separate entries in the `SupportedFormats` vector.

Public Methods

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_hardware_audio::wire::SupportedEncodings> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_hardware_audio::wire::SupportedEncodings> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_audio::wire::SupportedEncodings>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_audio::wire::SupportedEncodings>> && frame_ptr)
void SupportedEncodings ()

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

void SupportedEncodings (SupportedEncodings && other)

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

::fidl::VectorView< ::fuchsia_hardware_audio::wire::ChannelSet> & channel_sets ()

Vector of possible `ChannelSets` supported.

A `ChannelSet` specifies a channel configuration (including a channel-count), plus a number

of optional attributes.

Each entry in this vector must describe a unique channel count. For example, this

vector cannot contain two different `ChannelSet` entries that both apply to a

2-channel configuration.

Required.

bool has_channel_sets ()
::fidl::VectorView<uint32_t> & frame_rates ()

Vector of possible frame rates supported. Values must be listed in ascending order.

Required.

bool has_frame_rates ()
bool has_encoding_types ()
SupportedEncodings & operator= (const SupportedEncodings & other)

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

SupportedEncodings & operator= (SupportedEncodings && other)

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

SupportedEncodings & set_channel_sets (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_hardware_audio::wire::ChannelSet>> elem)
SupportedEncodings & set_channel_sets (std::nullptr_t )
SupportedEncodings & clear_channel_sets ()
SupportedEncodings & set_frame_rates (::fidl::ObjectView< ::fidl::VectorView<uint32_t>> elem)
SupportedEncodings & set_frame_rates (std::nullptr_t )
SupportedEncodings & clear_frame_rates ()
SupportedEncodings & set_encoding_types (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_hardware_audio::wire::EncodingType>> elem)
SupportedEncodings & set_encoding_types (std::nullptr_t )
SupportedEncodings & clear_encoding_types ()
void SupportedEncodings (::fidl::AnyArena & allocator)
void SupportedEncodings (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_audio::wire::SupportedEncodings>> && frame)

This constructor allows a user controlled allocation (not using a Arena).

It should only be used when performance is key.

As soon as the frame is given to the table, it must not be used directly or for another table.

void SupportedEncodings (const SupportedEncodings & other)

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

::fidl::VectorView< ::fuchsia_hardware_audio::wire::EncodingType> & encoding_types ()

The encoder types that support the configurations listed above.

Required.

void ~SupportedEncodings ()

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

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder