Struct EqualizerBandState
pub struct EqualizerBandState {
pub id: Option<u64>,
pub type_: Option<EqualizerBandType>,
pub frequency: Option<u32>,
pub q: Option<f32>,
pub gain_db: Option<f32>,
pub enabled: Option<bool>,
/* private fields */
}
Expand description
State for a single band within a Element
with type
equal to EQUALIZER
.
Fields§
§id: Option<u64>
Unique ID for the band. Must match one of the id
s specified in Equalizer
bands
.
Required.
type_: Option<EqualizerBandType>
Type of band.
Optional.
frequency: Option<u32>
Center frequency for the band.
Optional.
q: Option<f32>
Quality factor, usually denoted as “Q”. Indicates how narrow the frequency transition is. Higher Q values imply narrower notches/peaks and steeper cuts/shelves. Must be positive.
Optional.
gain_db: Option<f32>
Gain in dB.
Optional, but required for EqualizerBandType
PEAK
, LOW_SHELF
and HIGH_SHELF
.
May not be included for EqualizerBandType
NOTCH
, LOW_CUT
or HIGH_CUT
.
enabled: Option<bool>
Enable/disable the band. By default all bands are enabled.
Disabling the enclosing processing element by setting ElementState.enabled
to
false disables the whole equalizer and it does not change this field. For a band to be
functional its enclosing equalizer processing element has to be enabled.
Optional.
Trait Implementations§
§impl Clone for EqualizerBandState
impl Clone for EqualizerBandState
§fn clone(&self) -> EqualizerBandState
fn clone(&self) -> EqualizerBandState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for EqualizerBandState
impl Debug for EqualizerBandState
§impl<D> Decode<EqualizerBandState, D> for EqualizerBandStatewhere
D: ResourceDialect,
impl<D> Decode<EqualizerBandState, D> for EqualizerBandStatewhere
D: ResourceDialect,
§fn new_empty() -> EqualizerBandState
fn new_empty() -> EqualizerBandState
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for EqualizerBandState
impl Default for EqualizerBandState
§fn default() -> EqualizerBandState
fn default() -> EqualizerBandState
§impl<D> Encode<EqualizerBandState, D> for &EqualizerBandStatewhere
D: ResourceDialect,
impl<D> Encode<EqualizerBandState, D> for &EqualizerBandStatewhere
D: ResourceDialect,
§impl PartialEq for EqualizerBandState
impl PartialEq for EqualizerBandState
§impl TypeMarker for EqualizerBandState
impl TypeMarker for EqualizerBandState
§type Owned = EqualizerBandState
type Owned = EqualizerBandState
§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.§impl ValueTypeMarker for EqualizerBandState
impl ValueTypeMarker for EqualizerBandState
§type Borrowed<'a> = &'a EqualizerBandState
type Borrowed<'a> = &'a EqualizerBandState
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<EqualizerBandState as TypeMarker>::Owned,
) -> <EqualizerBandState as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<EqualizerBandState as TypeMarker>::Owned, ) -> <EqualizerBandState as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.