pub struct Dsp { /* private fields */ }
Expand description
Dsp object
Implementations§
Source§impl Dsp
impl Dsp
pub fn get_system_object(&self) -> Result<Sys, Status>
pub fn release(&mut self) -> Status
pub fn play(&self) -> Result<Channel, Status>
pub fn play_with_parameters( &self, channel_id: ChannelIndex, ) -> Result<Channel, Status>
pub fn add_input(&self, target: Dsp) -> Result<DspConnection, Status>
pub fn disconnect_from(&self, target: Dsp) -> Status
pub fn disconnect_all(&self, inputs: bool, outputs: bool) -> Status
pub fn remove(&self) -> Status
pub fn get_num_inputs(&self) -> Result<i32, Status>
pub fn get_num_outputs(&self) -> Result<i32, Status>
pub fn get_input(&self, index: i32) -> Result<(Dsp, DspConnection), Status>
pub fn get_output(&self, index: i32) -> Result<(Dsp, DspConnection), Status>
pub fn set_active(&self, active: bool) -> Status
pub fn get_active(&self) -> Result<bool, Status>
pub fn set_bypass(&self, bypass: bool) -> Status
pub fn get_bypass(&self) -> Result<bool, Status>
pub fn set_speaker_active(&self, speaker: Speaker, active: bool) -> Status
pub fn get_speaker_active(&self, speaker: Speaker) -> Result<bool, Status>
pub fn reset(&self) -> Status
Sourcepub fn set_parameter(&self, index: i32, value: f32) -> Status
pub fn set_parameter(&self, index: i32, value: f32) -> Status
value argument depends directly on the index argument, index argument depends on your DSP type, it is a value from one of the following enums :
Sourcepub fn get_parameter(
&self,
index: i32,
value_str_len: usize,
) -> Result<(f32, String), RStatus>
pub fn get_parameter( &self, index: i32, value_str_len: usize, ) -> Result<(f32, String), RStatus>
value result depends directly on the index argument, index argument depends on your DSP type, it is a value from one of the following enums:
pub fn get_num_parameters(&self) -> Result<i32, Status>
pub fn get_parameter_info( &self, index: i32, name: &str, label: &str, description_len: usize, ) -> Result<(String, f32, f32), RStatus>
pub fn get_info(&self, name: &str) -> Result<(u32, i32, i32, i32), Status>
pub fn set_defaults( &self, frequency: f32, volume: f32, pan: f32, priority: i32, ) -> Status
pub fn get_type(&self) -> Result<DspType, Status>
pub fn get_defaults(&self) -> Result<(f32, f32, f32, i32), Status>
pub fn get_memory_info( &self, MemoryBits: MemoryBits, EventMemoryBits: EventMemoryBits, ) -> Result<(u32, MemoryUsageDetails), Status>
pub fn set_user_data<'r, T>(&'r mut self, user_data: &'r mut T) -> Status
pub fn get_user_data<'r, T>(&'r self) -> Result<&'r mut T, Status>
Trait Implementations§
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