Struct xsynth_render::ChannelInitOptions
source · pub struct ChannelInitOptions {
pub fade_out_killing: bool,
pub drums_only: bool,
}
Expand description
Options for initializing a new VoiceChannel.
Fields§
§fade_out_killing: bool
If set to true, the voices killed due to the voice limit will fade out. If set to false, they will be killed immediately, usually causing clicking but improving performance.
Default: false
drums_only: bool
If set to true, the channel will only use drum patches.
Default: false
Trait Implementations§
source§impl Clone for ChannelInitOptions
impl Clone for ChannelInitOptions
source§fn clone(&self) -> ChannelInitOptions
fn clone(&self) -> ChannelInitOptions
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 moresource§impl Debug for ChannelInitOptions
impl Debug for ChannelInitOptions
source§impl Default for ChannelInitOptions
impl Default for ChannelInitOptions
source§fn default() -> ChannelInitOptions
fn default() -> ChannelInitOptions
Returns the “default value” for a type. Read more
impl Copy for ChannelInitOptions
Auto Trait Implementations§
impl Freeze for ChannelInitOptions
impl RefUnwindSafe for ChannelInitOptions
impl Send for ChannelInitOptions
impl Sync for ChannelInitOptions
impl Unpin for ChannelInitOptions
impl UnwindSafe for ChannelInitOptions
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)