Struct Equalizer
pub struct Equalizer {
pub bands: Option<Vec<EqualizerBand>>,
pub supported_controls: Option<EqualizerSupportedControls>,
pub can_disable_bands: Option<bool>,
pub min_frequency: Option<u32>,
pub max_frequency: Option<u32>,
pub max_q: Option<f32>,
pub min_gain_db: Option<f32>,
pub max_gain_db: Option<f32>,
/* private fields */
}
Expand description
Parameters for a Element
with type
equal to EQUALIZER
.
Fields§
§bands: Option<Vec<EqualizerBand>>
Equalizers in this protocol are built by a number of bands, each specifying a number of
parameters here and EqualizerElementState
that can be changed with SetElementState
.
The number of elements of the bands
vector determines the number of bands
supported by this processing element.
Required.
supported_controls: Option<EqualizerSupportedControls>
The controls supported by this equalizer.
Optional.
can_disable_bands: Option<bool>
If included and true, individual bands can be disabled via SetElementState
.
If not included or false, the bands are always enabled.
For a band to be functional its enclosing equalizer processing element has to be enabled.
Optional.
min_frequency: Option<u32>
Minimum frequency for the bands in Hz.
Required.
max_frequency: Option<u32>
Maximum frequency for the bands in Hz.
Required.
max_q: Option<f32>
Maximum quality factor, usually denoted by “Q”, for the bands. Indicates how narrow the frequency transition is. Higher Q values imply narrower notches/peaks and steeper cuts/shelves. Must be positive.
Optional.
min_gain_db: Option<f32>
Minimum gain in dB.
Optional, but required if supported_controls
is present and includes SUPPORTS_TYPE_PEAK
,
SUPPORTS_TYPE_LOW_SHELF
or SUPPORTS_TYPE_HIGH_SHELF
.
max_gain_db: Option<f32>
Maximum gain in dB.
Optional, but required if supported_controls
is present and includes SUPPORTS_TYPE_PEAK
,
SUPPORTS_TYPE_LOW_SHELF
or SUPPORTS_TYPE_HIGH_SHELF
.
Trait Implementations§
§impl<D> Decode<Equalizer, D> for Equalizerwhere
D: ResourceDialect,
impl<D> Decode<Equalizer, D> for Equalizerwhere
D: ResourceDialect,
§impl TypeMarker for Equalizer
impl TypeMarker for Equalizer
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.