Dsp

Struct Dsp 

Source
pub struct Dsp { /* private fields */ }

Implementations§

Source§

impl Dsp

Source

pub fn from(pointer: *mut FMOD_DSP) -> Self

Source

pub fn as_mut_ptr(&self) -> *mut FMOD_DSP

Source

pub fn release(&self) -> Result<(), Error>

Source

pub fn get_system_object(&self) -> Result<System, Error>

Source

pub fn add_input( &self, input: Dsp, type_: DspConnectionType, ) -> Result<DspConnection, Error>

Source

pub fn disconnect_from( &self, target: Option<Dsp>, connection: Option<DspConnection>, ) -> Result<(), Error>

Source

pub fn disconnect_all(&self, inputs: bool, outputs: bool) -> Result<(), Error>

Source

pub fn get_num_inputs(&self) -> Result<i32, Error>

Source

pub fn get_num_outputs(&self) -> Result<i32, Error>

Source

pub fn get_input(&self, index: i32) -> Result<(Dsp, DspConnection), Error>

Source

pub fn get_output(&self, index: i32) -> Result<(Dsp, DspConnection), Error>

Source

pub fn set_active(&self, active: bool) -> Result<(), Error>

Source

pub fn get_active(&self) -> Result<bool, Error>

Source

pub fn set_bypass(&self, bypass: bool) -> Result<(), Error>

Source

pub fn get_bypass(&self) -> Result<bool, Error>

Source

pub fn set_wet_dry_mix( &self, prewet: f32, postwet: f32, dry: f32, ) -> Result<(), Error>

Source

pub fn get_wet_dry_mix(&self) -> Result<(f32, f32, f32), Error>

Source

pub fn set_channel_format( &self, channelmask: impl Into<FMOD_CHANNELMASK>, numchannels: i32, source_speakermode: SpeakerMode, ) -> Result<(), Error>

Source

pub fn get_channel_format( &self, ) -> Result<(FMOD_CHANNELMASK, i32, SpeakerMode), Error>

Source

pub fn get_output_channel_format( &self, inmask: impl Into<FMOD_CHANNELMASK>, inchannels: i32, inspeakermode: SpeakerMode, ) -> Result<(FMOD_CHANNELMASK, i32, SpeakerMode), Error>

Source

pub fn reset(&self) -> Result<(), Error>

Source

pub fn set_callback(&self, callback: FMOD_DSP_CALLBACK) -> Result<(), Error>

Source

pub fn set_parameter_float(&self, index: i32, value: f32) -> Result<(), Error>

Source

pub fn set_parameter_int(&self, index: i32, value: i32) -> Result<(), Error>

Source

pub fn set_parameter_bool(&self, index: i32, value: bool) -> Result<(), Error>

Source

pub fn set_parameter_data( &self, index: i32, data: *mut c_void, length: u32, ) -> Result<(), Error>

Source

pub fn get_parameter_float( &self, index: i32, valuestrlen: i32, ) -> Result<(f32, String), Error>

Source

pub fn get_parameter_int( &self, index: i32, valuestrlen: i32, ) -> Result<(i32, String), Error>

Source

pub fn get_parameter_bool( &self, index: i32, valuestrlen: i32, ) -> Result<(bool, String), Error>

Source

pub fn get_parameter_data( &self, index: i32, valuestrlen: i32, ) -> Result<(*mut c_void, u32, String), Error>

Source

pub fn get_num_parameters(&self) -> Result<i32, Error>

Source

pub fn get_parameter_info(&self, index: i32) -> Result<DspParameterDesc, Error>

Source

pub fn get_data_parameter_index(&self, datatype: i32) -> Result<i32, Error>

Source

pub fn show_config_dialog( &self, hwnd: *mut c_void, show: bool, ) -> Result<(), Error>

Source

pub fn get_info(&self) -> Result<(String, u32, i32, i32, i32), Error>

Source

pub fn get_type(&self) -> Result<DspType, Error>

Source

pub fn get_idle(&self) -> Result<bool, Error>

Source

pub fn set_user_data(&self, userdata: *mut c_void) -> Result<(), Error>

Source

pub fn get_user_data(&self) -> Result<*mut c_void, Error>

Source

pub fn set_metering_enabled( &self, input_enabled: bool, output_enabled: bool, ) -> Result<(), Error>

Source

pub fn get_metering_enabled(&self) -> Result<(bool, bool), Error>

Source

pub fn get_metering_info( &self, ) -> Result<(DspMeteringInfo, DspMeteringInfo), Error>

Source

pub fn get_cpu_usage(&self) -> Result<(u32, u32), Error>

Trait Implementations§

Source§

impl Clone for Dsp

Source§

fn clone(&self) -> Dsp

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Dsp

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TryFrom<Dsp> for DspParameterFft

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(dsp: Dsp) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for Dsp

Source§

impl Send for Dsp

Source§

impl Sync for Dsp

Auto Trait Implementations§

§

impl Freeze for Dsp

§

impl RefUnwindSafe for Dsp

§

impl Unpin for Dsp

§

impl UnwindSafe for Dsp

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.