fluidlite/synth/
count.rs

1use crate::{ffi, Synth};
2
3impl Synth {
4    /**
5    Returns the number of MIDI channels that the synthesizer uses internally
6     */
7    pub fn count_midi_channels(&self) -> u32 {
8        unsafe { ffi::fluid_synth_count_midi_channels(self.handle) as _ }
9    }
10
11    /**
12    Returns the number of audio channels that the synthesizer uses internally
13     */
14    pub fn count_audio_channels(&self) -> u32 {
15        unsafe { ffi::fluid_synth_count_audio_channels(self.handle) as _ }
16    }
17
18    /**
19    Returns the number of audio groups that the synthesizer uses internally.
20    This is usually identical to audio_channels.
21     */
22    pub fn count_audio_groups(&self) -> u32 {
23        unsafe { ffi::fluid_synth_count_audio_groups(self.handle) as _ }
24    }
25
26    /**
27    Returns the number of effects channels that the synthesizer uses internally
28     */
29    pub fn count_effects_channels(&self) -> u32 {
30        unsafe { ffi::fluid_synth_count_effects_channels(self.handle) as _ }
31    }
32}