#[non_exhaustive]pub struct SynthesizerSettings {
pub sample_rate: i32,
pub block_size: usize,
pub maximum_polyphony: usize,
pub enable_reverb_and_chorus: bool,
}Expand description
Specifies a set of parameters for synthesis.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sample_rate: i32The sample rate for synthesis.
block_size: usizeThe block size for rendering waveform.
maximum_polyphony: usizeThe number of maximum polyphony.
enable_reverb_and_chorus: boolThe value indicating whether reverb and chorus are enabled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SynthesizerSettings
impl RefUnwindSafe for SynthesizerSettings
impl Send for SynthesizerSettings
impl Sync for SynthesizerSettings
impl Unpin for SynthesizerSettings
impl UnwindSafe for SynthesizerSettings
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