Enum xsynth_core::channel::ChannelConfigEvent
source · pub enum ChannelConfigEvent {
SetSoundfonts(Vec<Arc<dyn SoundfontBase>>),
SetLayerCount(Option<usize>),
SetPercussionMode(bool),
}
Expand description
Events to modify parameters of a channel.
Variants§
SetSoundfonts(Vec<Arc<dyn SoundfontBase>>)
Sets the soundfonts for the channel
SetLayerCount(Option<usize>)
Sets the layer count for the soundfont
SetPercussionMode(bool)
Controls whether the channel will be standard or percussion.
Setting to true
will make the channel only use percussion patches.
Trait Implementations§
source§impl Clone for ChannelConfigEvent
impl Clone for ChannelConfigEvent
source§fn clone(&self) -> ChannelConfigEvent
fn clone(&self) -> ChannelConfigEvent
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 ChannelConfigEvent
impl !RefUnwindSafe for ChannelConfigEvent
impl Send for ChannelConfigEvent
impl Sync for ChannelConfigEvent
impl Unpin for ChannelConfigEvent
impl !UnwindSafe for ChannelConfigEvent
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)