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§
Source§impl<D: ResourceDialect> Decode<Equalizer, D> for Equalizer
impl<D: ResourceDialect> Decode<Equalizer, D> for Equalizer
Source§impl TypeMarker for Equalizer
impl TypeMarker for Equalizer
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 Equalizer
impl ValueTypeMarker for Equalizer
impl Persistable for Equalizer
impl StructuralPartialEq for Equalizer
Auto Trait Implementations§
impl Freeze for Equalizer
impl RefUnwindSafe for Equalizer
impl Send for Equalizer
impl Sync for Equalizer
impl Unpin for Equalizer
impl UnwindSafe for Equalizer
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
)