class SupportedEncodings
Defined at line 6938 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.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 Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
SupportedEncodings & set_channel_sets (::std::vector< ::fuchsia::hardware::audio::ChannelSet> _value)
SupportedEncodings & set_frame_rates (::std::vector<uint32_t> _value)
SupportedEncodings & set_encoding_types (::std::vector< ::fuchsia::hardware::audio::EncodingType> _value)
void SupportedEncodings ()
void SupportedEncodings (SupportedEncodings && other)
void ~SupportedEncodings ()
SupportedEncodings & operator= (SupportedEncodings && other)
::std::unique_ptr<SupportedEncodings> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, SupportedEncodings * _value, size_t _offset)
zx_status_t Clone (SupportedEncodings * _result)
const ::std::vector< ::fuchsia::hardware::audio::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.
Defined at line 6953 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
bool has_channel_sets ()
Defined at line 6957 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
::std::vector< ::fuchsia::hardware::audio::ChannelSet> * mutable_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.
Defined at line 6970 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
void clear_channel_sets ()
Defined at line 6978 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
const ::std::vector<uint32_t> & frame_rates ()
Vector of possible frame rates supported. Values must be listed in ascending order.
Required.
Defined at line 6989 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
bool has_frame_rates ()
Defined at line 6993 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
::std::vector<uint32_t> * mutable_frame_rates ()
Vector of possible frame rates supported. Values must be listed in ascending order.
Required.
Defined at line 7000 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
void clear_frame_rates ()
Defined at line 7008 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
const ::std::vector< ::fuchsia::hardware::audio::EncodingType> & encoding_types ()
The encoder types that support the configurations listed above.
Required.
Defined at line 7019 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
bool has_encoding_types ()
Defined at line 7023 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
::std::vector< ::fuchsia::hardware::audio::EncodingType> * mutable_encoding_types ()
The encoder types that support the configurations listed above.
Required.
Defined at line 7030 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h
void clear_encoding_types ()
Defined at line 7038 of file fidling/gen/sdk/fidl/fuchsia.hardware.audio/fuchsia.hardware.audio/hlcpp/fuchsia/hardware/audio/cpp/fidl.h