pub struct Dsp { /* private fields */ }
Implementations§
Source§impl Dsp
impl Dsp
pub fn from_raw_parts(raw: *mut FMOD_DSP, owned: bool, system: System) -> Self
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 Dsp
Auto Trait Implementations§
impl Freeze for Dsp
impl RefUnwindSafe for Dsp
impl !Send for Dsp
impl !Sync for Dsp
impl Unpin for Dsp
impl UnwindSafe for Dsp
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