pub struct Filters {
pub volume: Option<f64>,
pub equalizer: Option<Vec<Equalizer>>,
pub karaoke: Option<Karaoke>,
pub timescale: Option<Timescale>,
pub tremolo: Option<TremoloVibrato>,
pub vibrato: Option<TremoloVibrato>,
pub rotation: Option<Rotation>,
pub distortion: Option<Distortion>,
pub channel_mix: Option<ChannelMix>,
pub low_pass: Option<LowPass>,
pub plugin_filters: Option<Value>,
}
Fields§
§volume: Option<f64>
Adjusts the player volume from 0.0 to 5.0, where 1.0 is 100%.
NOTE: Values >1.0 may cause clipping
equalizer: Option<Vec<Equalizer>>
Adjusts 15 different bands.
karaoke: Option<Karaoke>
Eliminates part of a band, usually targeting vocals.
timescale: Option<Timescale>
Changes the speed, pitch, and rate.
tremolo: Option<TremoloVibrato>
Creates a shuddering effect, where the volume quickly oscillates.
vibrato: Option<TremoloVibrato>
Creates a shuddering effect, where the pitch quickly oscillates.
rotation: Option<Rotation>
Rotates the audio around the stereo channels/user headphones (aka Audio Panning).
distortion: Option<Distortion>
Distorts the audio.
channel_mix: Option<ChannelMix>
Mixes both stereo channels (left and right).
low_pass: Option<LowPass>
Filters out higher frequencies.
plugin_filters: Option<Value>
Filter plugin configurations.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Filters
impl<'de> Deserialize<'de> for Filters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PyClassImpl for Filters
impl PyClassImpl for Filters
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§type ThreadChecker = SendablePyClass<Filters>
type ThreadChecker = SendablePyClass<Filters>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<Filters> for PyClassImplCollector<Filters>
impl PyClassNewTextSignature<Filters> for PyClassImplCollector<Filters>
fn new_text_signature(self) -> Option<&'static str>
Source§impl PyMethods<Filters> for PyClassImplCollector<Filters>
impl PyMethods<Filters> for PyClassImplCollector<Filters>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for Filters
impl PyTypeInfo for Filters
Source§type AsRefTarget = PyCell<Filters>
type AsRefTarget = PyCell<Filters>
Utility type to make Py::as_ref work.
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.impl StructuralPartialEq for Filters
Auto Trait Implementations§
impl Freeze for Filters
impl RefUnwindSafe for Filters
impl Send for Filters
impl Sync for Filters
impl Unpin for Filters
impl UnwindSafe for Filters
Blanket Implementations§
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
Mutably borrows from an owned value. Read more