pub struct SoundFontSynthesizerOptions {
pub sample_rate: u32,
pub bit_depth: u8,
}
Expand description
Options to configure a SF2Synthesizer
.
Fields§
§sample_rate: u32
Sample rate in Hz. Default: 44100
bit_depth: u8
Bit depth of the WAV output, must be one of [8, 16, 24, 32]. Default: 16.
Trait Implementations§
Source§impl Clone for SoundFontSynthesizerOptions
impl Clone for SoundFontSynthesizerOptions
Source§fn clone(&self) -> SoundFontSynthesizerOptions
fn clone(&self) -> SoundFontSynthesizerOptions
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 SoundFontSynthesizerOptions
impl Debug for SoundFontSynthesizerOptions
Source§impl Default for SoundFontSynthesizerOptions
impl Default for SoundFontSynthesizerOptions
Source§fn default() -> SoundFontSynthesizerOptions
fn default() -> SoundFontSynthesizerOptions
Returns the “default value” for a type. Read more
impl Copy for SoundFontSynthesizerOptions
Auto Trait Implementations§
impl Freeze for SoundFontSynthesizerOptions
impl RefUnwindSafe for SoundFontSynthesizerOptions
impl Send for SoundFontSynthesizerOptions
impl Sync for SoundFontSynthesizerOptions
impl Unpin for SoundFontSynthesizerOptions
impl UnwindSafe for SoundFontSynthesizerOptions
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