Struct libfmod::DspConnection
source · [−]pub struct DspConnection { /* private fields */ }
Implementations
sourceimpl DspConnection
impl DspConnection
pub fn from(pointer: *mut FMOD_DSPCONNECTION) -> Self
pub fn as_mut_ptr(&self) -> *mut FMOD_DSPCONNECTION
pub fn get_input(&self) -> Result<Dsp, Error>
pub fn get_output(&self) -> Result<Dsp, Error>
pub fn set_mix(&self, volume: f32) -> Result<(), Error>
pub fn get_mix(&self) -> Result<f32, Error>
pub fn set_mix_matrix(
&self,
matrix: Option<*mut f32>,
outchannels: i32,
inchannels: i32,
inchannel_hop: Option<i32>
) -> Result<(), Error>
pub fn get_mix_matrix(
&self,
inchannel_hop: Option<i32>
) -> Result<(f32, i32, i32), Error>
pub fn get_type(&self) -> Result<DspConnectionType, Error>
pub fn set_user_data(&self, userdata: *mut c_void) -> Result<(), Error>
pub fn get_user_data(&self) -> Result<*mut c_void, Error>
Trait Implementations
sourceimpl Clone for DspConnection
impl Clone for DspConnection
sourcefn clone(&self) -> DspConnection
fn clone(&self) -> DspConnection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DspConnection
impl Debug for DspConnection
impl Copy for DspConnection
Auto Trait Implementations
impl RefUnwindSafe for DspConnection
impl !Send for DspConnection
impl !Sync for DspConnection
impl Unpin for DspConnection
impl UnwindSafe for DspConnection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more