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.
Required.
If this is a call to SetElementState
, then the corresponding SUPPORTS_TYPE_...
EqualizerSupportedControls
bit for type
must be set in Element.supported_controls
.
frequency: Option<u32>
Center frequency for the band.
Required.
If this is a call to SetElementState
and represents a change in this band’s frequency,
then CAN_CONTROL_FREQUENCY
must be set in Element.supported_controls
.
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.
If used in SetElementState
and represents a change in this band’s q, then CAN_CONTROL_Q
must be set in Element.supported_controls
. Must be finite.
gain_db: Option<f32>
Gain in dB.
Required, for EqualizerBandType
of PEAK
, LOW_SHELF
and HIGH_SHELF
. Must be finite.
Disallowed, for EqualizerBandType
of NOTCH
, LOW_CUT
and HIGH_CUT
.
enabled: Option<bool>
Enable/disable the band. If disabled, audio still flows through the equalizer but this band has no effect.
If absent in the return value from WatchElementState
, the band is enabled.
If omitted in a SetElementState
call, the band’s enable/disable state is unchanged.
Bypassing the entire enclosing processing element (by setting ElementState.bypassed
to
true) does not change this field’s value, although for an equalizer band to be functional,
its enclosing equalizer processing element must be both started and not bypassed.
Optional.
Trait Implementations§
Source§impl Clone for EqualizerBandState
impl Clone for EqualizerBandState
Source§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 moreSource§impl Debug for EqualizerBandState
impl Debug for EqualizerBandState
Source§impl<D: ResourceDialect> Decode<EqualizerBandState, D> for EqualizerBandState
impl<D: ResourceDialect> Decode<EqualizerBandState, D> for EqualizerBandState
Source§impl Default for EqualizerBandState
impl Default for EqualizerBandState
Source§fn default() -> EqualizerBandState
fn default() -> EqualizerBandState
Source§impl<D: ResourceDialect> Encode<EqualizerBandState, D> for &EqualizerBandState
impl<D: ResourceDialect> Encode<EqualizerBandState, D> for &EqualizerBandState
Source§impl PartialEq for EqualizerBandState
impl PartialEq for EqualizerBandState
Source§impl TypeMarker for EqualizerBandState
impl TypeMarker for EqualizerBandState
Source§type Owned = EqualizerBandState
type Owned = EqualizerBandState
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§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.Source§impl ValueTypeMarker for EqualizerBandState
impl ValueTypeMarker for EqualizerBandState
Source§type Borrowed<'a> = &'a EqualizerBandState
type Borrowed<'a> = &'a EqualizerBandState
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more