pub struct XSynthRealtimeConfig {
pub channel_init_options: ChannelInitOptions,
pub render_window_ms: f64,
pub format: SynthFormat,
pub multithreading: ThreadCount,
pub ignore_range: RangeInclusive<u8>,
}
Expand description
Options for initializing a new RealtimeSynth.
Fields§
§channel_init_options: ChannelInitOptions
Channel initialization options (same for all channels).
See the ChannelInitOptions
documentation for more information.
render_window_ms: f64
The length of the buffer reader in ms.
Default: 10.0
format: SynthFormat
Defines the format that the synthesizer will use. See the SynthFormat
documentation for more information.
Default: SynthFormat::Midi
multithreading: ThreadCount
Controls the multithreading used for rendering per-voice audio for all
the voices stored in a key for a channel. See the ThreadCount
documentation
for the available options.
Default: ThreadCount::None
ignore_range: RangeInclusive<u8>
A range of velocities that will not be played.
Default: 0..=0
Trait Implementations§
Source§impl Clone for XSynthRealtimeConfig
impl Clone for XSynthRealtimeConfig
Source§fn clone(&self) -> XSynthRealtimeConfig
fn clone(&self) -> XSynthRealtimeConfig
Returns a duplicate 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 XSynthRealtimeConfig
impl Debug for XSynthRealtimeConfig
Source§impl Default for XSynthRealtimeConfig
impl Default for XSynthRealtimeConfig
Source§impl PartialEq for XSynthRealtimeConfig
impl PartialEq for XSynthRealtimeConfig
impl StructuralPartialEq for XSynthRealtimeConfig
Auto Trait Implementations§
impl Freeze for XSynthRealtimeConfig
impl RefUnwindSafe for XSynthRealtimeConfig
impl Send for XSynthRealtimeConfig
impl Sync for XSynthRealtimeConfig
impl Unpin for XSynthRealtimeConfig
impl UnwindSafe for XSynthRealtimeConfig
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§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more