pub struct Dsp { /* private fields */ }Implementations§
Source§impl Dsp
impl Dsp
pub fn from(pointer: *mut FMOD_DSP) -> Self
pub fn as_mut_ptr(&self) -> *mut FMOD_DSP
pub fn release(&self) -> Result<(), Error>
pub fn get_system_object(&self) -> Result<System, Error>
pub fn add_input( &self, input: Dsp, type_: DspConnectionType, ) -> Result<DspConnection, Error>
pub fn disconnect_from( &self, target: Option<Dsp>, connection: Option<DspConnection>, ) -> Result<(), Error>
pub fn disconnect_all(&self, inputs: bool, outputs: bool) -> Result<(), Error>
pub fn get_num_inputs(&self) -> Result<i32, Error>
pub fn get_num_outputs(&self) -> Result<i32, Error>
pub fn get_input(&self, index: i32) -> Result<(Dsp, DspConnection), Error>
pub fn get_output(&self, index: i32) -> Result<(Dsp, DspConnection), Error>
pub fn set_active(&self, active: bool) -> Result<(), Error>
pub fn get_active(&self) -> Result<bool, Error>
pub fn set_bypass(&self, bypass: bool) -> Result<(), Error>
pub fn get_bypass(&self) -> Result<bool, Error>
pub fn set_wet_dry_mix( &self, prewet: f32, postwet: f32, dry: f32, ) -> Result<(), Error>
pub fn get_wet_dry_mix(&self) -> Result<(f32, f32, f32), Error>
pub fn set_channel_format( &self, channelmask: impl Into<FMOD_CHANNELMASK>, numchannels: i32, source_speakermode: SpeakerMode, ) -> Result<(), Error>
pub fn get_channel_format( &self, ) -> Result<(FMOD_CHANNELMASK, i32, SpeakerMode), Error>
pub fn get_output_channel_format( &self, inmask: impl Into<FMOD_CHANNELMASK>, inchannels: i32, inspeakermode: SpeakerMode, ) -> Result<(FMOD_CHANNELMASK, i32, SpeakerMode), Error>
pub fn reset(&self) -> Result<(), Error>
pub fn set_callback(&self, callback: FMOD_DSP_CALLBACK) -> Result<(), Error>
pub fn set_parameter_float(&self, index: i32, value: f32) -> Result<(), Error>
pub fn set_parameter_int(&self, index: i32, value: i32) -> Result<(), Error>
pub fn set_parameter_bool(&self, index: i32, value: bool) -> Result<(), Error>
pub fn set_parameter_data( &self, index: i32, data: *mut c_void, length: u32, ) -> Result<(), Error>
pub fn get_parameter_float( &self, index: i32, valuestrlen: i32, ) -> Result<(f32, String), Error>
pub fn get_parameter_int( &self, index: i32, valuestrlen: i32, ) -> Result<(i32, String), Error>
pub fn get_parameter_bool( &self, index: i32, valuestrlen: i32, ) -> Result<(bool, String), Error>
pub fn get_parameter_data( &self, index: i32, valuestrlen: i32, ) -> Result<(*mut c_void, u32, String), Error>
pub fn get_num_parameters(&self) -> Result<i32, Error>
pub fn get_parameter_info(&self, index: i32) -> Result<DspParameterDesc, Error>
pub fn get_data_parameter_index(&self, datatype: i32) -> Result<i32, Error>
pub fn show_config_dialog( &self, hwnd: *mut c_void, show: bool, ) -> Result<(), Error>
pub fn get_info(&self) -> Result<(String, u32, i32, i32, i32), Error>
pub fn get_type(&self) -> Result<DspType, Error>
pub fn get_idle(&self) -> Result<bool, Error>
pub fn set_user_data(&self, userdata: *mut c_void) -> Result<(), Error>
pub fn get_user_data(&self) -> Result<*mut c_void, Error>
pub fn set_metering_enabled( &self, input_enabled: bool, output_enabled: bool, ) -> Result<(), Error>
pub fn get_metering_enabled(&self) -> Result<(bool, bool), Error>
pub fn get_metering_info( &self, ) -> Result<(DspMeteringInfo, DspMeteringInfo), Error>
pub fn get_cpu_usage(&self) -> Result<(u32, u32), Error>
Trait Implementations§
Source§impl TryFrom<Dsp> for DspParameterFft
impl TryFrom<Dsp> for DspParameterFft
impl Copy for Dsp
impl Send for Dsp
impl Sync for Dsp
Auto Trait Implementations§
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