pub struct ChannelGroup { /* private fields */ }
Implementations§
Source§impl ChannelGroup
impl ChannelGroup
pub fn is_master(&self) -> Result<bool, Error>
pub fn raw(&self) -> *mut FMOD_CHANNELGROUP
pub fn channel_group_ref(&self) -> ChannelGroupRef
Sourcepub fn get_channel(&self, index: i32) -> Result<Channel, Error>
pub fn get_channel(&self, index: i32) -> Result<Channel, Error>
Retrieves the specified channel from the channel group for the index from
0 to the number of channels returned by channel_group.get_num_channels()
Sourcepub fn get_group(&self, index: i32) -> Result<ChannelGroupRef, Error>
pub fn get_group(&self, index: i32) -> Result<ChannelGroupRef, Error>
Retrieves a handle to a specified sub channel group
pub fn get_name(&self) -> Result<String, Error>
pub fn get_num_channels(&self) -> Result<i32, Error>
pub fn get_num_groups(&self) -> Result<i32, Error>
Sourcepub fn get_parent_group(&self) -> Result<Option<ChannelGroupRef>, Error>
pub fn get_parent_group(&self) -> Result<Option<ChannelGroupRef>, Error>
Retrieves a handle to the channel group parent.
Returns None
if this is the master channel group.
Trait Implementations§
Source§impl ChannelControl for ChannelGroup
impl ChannelControl for ChannelGroup
Source§fn add_dsp(&mut self, index: i32, dsp: &mut Dsp) -> Result<(), Error>
fn add_dsp(&mut self, index: i32, dsp: &mut Dsp) -> Result<(), Error>
Add a DSP to the DSP chain at the given index. Index must be a position in the range $[0, numDSPs]$, or else one of the special indices:
DspIndex::Head == -1
– head of the chain; always equal to 0DspIndex::Fader == -2
– built-in fader DSP; initially 0DspIndex::Tail == -3
– tail of the chain; equal to $numDSPs-1$
§Errors
An InvalidParam
error will be returned if index > self.get_num_dsps()
.
Source§fn get_3d_cone_settings(&self) -> Result<(f32, f32, f32), Error>
fn get_3d_cone_settings(&self) -> Result<(f32, f32, f32), Error>
Retrieves the angles that define the sound projection cone including the volume when outside the cone.
Returns (insideconeangle, outsideconeangle, outsidevolume)
.
Source§fn get_3d_distance_filter(&self) -> Result<(bool, f32, f32), Error>
fn get_3d_distance_filter(&self) -> Result<(bool, f32, f32), Error>
Retrieve the settings for the 3D distance filter properties for a Channel or Channel Group.
Returns (custom, customlevel, centerfreq)
.
Source§fn get_3d_min_max_distance(&self) -> Result<(f32, f32), Error>
fn get_3d_min_max_distance(&self) -> Result<(f32, f32), Error>
Retrieves the minimum and maximum audible distance
Source§fn get_3d_occlusion(&self) -> Result<(f32, f32), Error>
fn get_3d_occlusion(&self) -> Result<(f32, f32), Error>
Retrieves the occlusion factors.
Returns (directocclusion, reverbocclusion)
.
Source§fn get_3d_spread(&self) -> Result<f32, Error>
fn get_3d_spread(&self) -> Result<f32, Error>
Retrieves the spread of a 3D sound in speaker space.
Returns the speaker spread angle.
Source§fn get_dsp(&self, index: i32) -> Result<DspRef, Error>
fn get_dsp(&self, index: i32) -> Result<DspRef, Error>
Retrieve the DSP unit at the specified index
Source§fn get_dsp_index(&self, dsp: &Dsp) -> Result<i32, Error>
fn get_dsp_index(&self, dsp: &Dsp) -> Result<i32, Error>
Retrieve the index in the DSP chain of the provided DSP
Source§fn get_num_dsps(&self) -> Result<u32, Error>
fn get_num_dsps(&self) -> Result<u32, Error>
Retrieves the number of DSP units in the DSP chain
Source§fn get_reverb_properties(&self, instance: i32) -> Result<f32, Error>
fn get_reverb_properties(&self, instance: i32) -> Result<f32, Error>
Retrieves the wet level (or send level) for a particular reverb instance.
Returns the send level for the signal to the reverb, from 0 (none) to 1.0 (full).
instance
– Index of the particular reverb instance to target, from 0 to
dsp::REVERB_MAXINSTANCES
.
fn add_fade_point(&mut self, dspclock: u64, volume: f32) -> Result<(), Error>
fn get_3d_attributes(&self) -> Result<([f32; 3], [f32; 3]), Error>
fn get_3d_cone_orientation(&self) -> Result<[f32; 3], Error>
fn get_3d_custom_rolloff(&self) -> Result<Vec<[f32; 3]>, Error>
fn get_3d_doppler_level(&self) -> Result<f32, Error>
fn get_audibility(&self) -> Result<f32, Error>
fn get_delay(&self) -> Result<Delay, Error>
fn get_low_pass_gain(&self) -> Result<f32, Error>
fn get_mode(&self) -> Result<Mode, Error>
fn get_mute(&self) -> Result<bool, Error>
fn get_paused(&self) -> Result<bool, Error>
fn get_volume(&self) -> Result<f32, Error>
fn is_playing(&self) -> Result<bool, Error>
fn remove_dsp(&mut self, dsp: &mut Dsp) -> Result<(), Error>
fn set_3d_attributes( &mut self, pos: [f32; 3], vel: [f32; 3], ) -> Result<(), Error>
fn set_delay( &mut self, dspclock_start: u64, dspclock_end: u64, stopchannels: bool, ) -> Result<(), Error>
fn set_fade_point_ramp( &mut self, dspclock: u64, volume: f32, ) -> Result<(), Error>
fn set_mute(&mut self, mute: bool) -> Result<(), Error>
fn set_paused(&mut self, paused: bool) -> Result<(), Error>
Source§fn set_reverb_properties(
&mut self,
instance: i32,
wet: f32,
) -> Result<(), Error>
fn set_reverb_properties( &mut self, instance: i32, wet: f32, ) -> Result<(), Error>
fn set_volume(&mut self, volume: f32) -> Result<(), Error>
fn stop(&mut self) -> Result<(), Error>
Source§impl Clone for ChannelGroup
impl Clone for ChannelGroup
Source§fn clone(&self) -> ChannelGroup
fn clone(&self) -> ChannelGroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more