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§
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 moreimpl Persistable for EqualizerBandState
impl StructuralPartialEq for EqualizerBandState
Auto Trait Implementations§
impl Freeze for EqualizerBandState
impl RefUnwindSafe for EqualizerBandState
impl Send for EqualizerBandState
impl Sync for EqualizerBandState
impl Unpin for EqualizerBandState
impl UnwindSafe for EqualizerBandState
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)