pub struct ChannelGroup { /* private fields */ }
Expand description
ChannelGroup object
Implementations§
Source§impl ChannelGroup
impl ChannelGroup
pub fn release(&mut self) -> Status
pub fn set_volume(&self, volume: f32) -> Status
pub fn get_volume(&self) -> Result<f32, Status>
pub fn set_pitch(&self, pitch: f32) -> Status
pub fn get_pitch(&self) -> Result<f32, Status>
pub fn set_paused(&self, paused: bool) -> Status
pub fn get_paused(&self) -> Result<bool, Status>
pub fn set_mute(&self, mute: bool) -> Status
pub fn get_mute(&self) -> Result<bool, Status>
pub fn set_3D_occlusion( &self, direct_occlusion: f32, reverb_occlusion: f32, ) -> Status
pub fn get_3D_occlusion(&self) -> Result<(f32, f32), Status>
pub fn stop(&self) -> Status
pub fn override_volume(&self, volume: f32) -> Status
pub fn override_frequency(&self, frequency: f32) -> Status
pub fn override_pan(&self, pan: f32) -> Status
pub fn override_reverb_properties( &self, properties: &ReverbChannelProperties, ) -> Status
pub fn override_3D_attributes(&self, pos: &Vector, vel: &Vector) -> Status
pub fn override_speaker_mix( &self, front_left: f32, front_right: f32, center: f32, lfe: f32, back_left: f32, back_right: f32, side_left: f32, side_right: f32, ) -> Status
pub fn add_group(&self, group: &ChannelGroup) -> Status
pub fn get_num_groups(&self) -> Result<i32, Status>
pub fn get_group(&self, index: i32) -> Result<ChannelGroup, Status>
pub fn get_parent_group(&self) -> Result<ChannelGroup, Status>
pub fn get_DSP_head(&self) -> Result<Dsp, Status>
pub fn add_DSP(&self, dsp: &Dsp) -> Result<DspConnection, Status>
pub fn get_name(&self, name_len: usize) -> Result<String, RStatus>
pub fn get_num_channels(&self) -> Result<u32, Status>
pub fn get_channel(&self, index: i32) -> Result<Channel, Status>
pub fn get_spectrum( &self, spectrum_size: usize, channel_offset: Option<i32>, window_type: Option<DspFftWindow>, ) -> Result<Vec<f32>, Status>
pub fn get_wave_data( &self, wave_size: usize, channel_offset: i32, ) -> Result<Vec<f32>, Status>
pub fn get_memory_info( &self, MemoryBits: MemoryBits, EventMemoryBits: EventMemoryBits, ) -> Result<(u32, MemoryUsageDetails), Status>
pub fn set_user_data<'r, T>(&'r 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 ChannelGroup
impl RefUnwindSafe for ChannelGroup
impl !Send for ChannelGroup
impl !Sync for ChannelGroup
impl Unpin for ChannelGroup
impl UnwindSafe for ChannelGroup
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