Struct xsynth_render::ChannelGroupConfig
source · pub struct ChannelGroupConfig {
pub channel_init_options: ChannelInitOptions,
pub channel_count: u32,
pub drums_channels: Vec<u32>,
pub audio_params: AudioStreamParams,
pub parallelism: ParallelismOptions,
}
Expand description
Options for initializing a new ChannelGroup.
Fields§
§channel_init_options: ChannelInitOptions
Channel initialization options (same for all channels).
See the ChannelInitOptions
documentation for more information.
channel_count: u32
Amount of VoiceChannel objects to be created (Number of MIDI channels) The MIDI 1 spec uses 16 channels.
drums_channels: Vec<u32>
A vector which specifies which of the created channels (indexes) will be used for drums.
For example in a conventional 16 MIDI channel setup where channel 10 is used for drums, the vector would be set as vec![9] (counting from 0).
audio_params: AudioStreamParams
Parameters of the output audio.
See the AudioStreamParams
documentation for more information.
parallelism: ParallelismOptions
Options about the ChannelGroup
instance’s parallelism. See the ParallelismOptions
documentation for more information.
Trait Implementations§
source§impl Clone for ChannelGroupConfig
impl Clone for ChannelGroupConfig
source§fn clone(&self) -> ChannelGroupConfig
fn clone(&self) -> ChannelGroupConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ChannelGroupConfig
impl RefUnwindSafe for ChannelGroupConfig
impl Send for ChannelGroupConfig
impl Sync for ChannelGroupConfig
impl Unpin for ChannelGroupConfig
impl UnwindSafe for ChannelGroupConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)