pub struct DspRef { /* private fields */ }
Methods from Deref<Target = Dsp>§
pub fn raw(&self) -> *mut FMOD_DSP
pub fn dsp_ref(&self) -> DspRef
pub fn get_active(&self) -> Result<bool, Error>
pub fn get_bypass(&self) -> Result<bool, Error>
pub fn get_num_inputs(&self) -> Result<i32, Error>
pub fn get_num_outputs(&self) -> Result<i32, Error>
pub fn get_parameter_float(&mut self, index: i32) -> Result<f32, Error>
Sourcepub fn get_parameter_float_description(
&mut self,
index: i32,
) -> Result<(f32, String), Error>
pub fn get_parameter_float_description( &mut self, index: i32, ) -> Result<(f32, String), Error>
Get a float parameter and a meaningful description of the value (e.g. 0.0 returns “OFF” and 1.0 returns “ON”)
pub fn get_type(&self) -> Result<Type, Error>
pub fn set_active(&mut self, active: bool) -> Result<(), Error>
pub fn set_bypass(&mut self, bypass: bool) -> Result<(), Error>
pub fn set_parameter_float( &mut self, index: i32, value: f32, ) -> Result<(), Error>
pub fn set_parameter_int(&mut self, index: i32, value: i32) -> Result<(), Error>
Sourcepub fn get_parameters_sfxreverb(&mut self) -> Result<(Properties, f32), Error>
pub fn get_parameters_sfxreverb(&mut self) -> Result<(Properties, f32), Error>
Convenience method for returning reverb properties and dry level of a Sfxreverb
DSP unit.
§Panics
Panics if the DSP Type
is not Sfxreverb
.
Sourcepub fn set_parameters_sfxreverb(
&mut self,
properties: &Properties,
dry_level: f32,
) -> Result<(), Error>
pub fn set_parameters_sfxreverb( &mut self, properties: &Properties, dry_level: f32, ) -> Result<(), Error>
Convenience method for setting reverb properties and dry level of a Sfxreverb
DSP unit.
§Panics
Panics if the DSP Type
is not SfxReverb
.
Trait Implementations§
impl StructuralPartialEq for DspRef
Auto Trait Implementations§
impl Freeze for DspRef
impl RefUnwindSafe for DspRef
impl !Send for DspRef
impl !Sync for DspRef
impl Unpin for DspRef
impl UnwindSafe for DspRef
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