pub struct EncodeOptions {
pub sample_format: SampleFormat,
pub endian: Endian,
pub dither: Dither,
pub metadata: AudioMetadata,
pub tags: Tags,
pub wav_channel_mask: Option<u32>,
pub bitrate: u32,
pub compression_level: u8,
}Fields§
§sample_format: SampleFormat§endian: Endian§dither: DitherNoise added once at the destination integer quantizer. Off by default.
metadata: AudioMetadataStructured publishing tags, supported by WAV, FLAC and MP3. Native map keys
remain available through metadata; supplying the same field twice is an error.
wav_channel_mask: Option<u32>Optional WAVEFORMATEXTENSIBLE speaker mask for PCM/float WAV. Its set-bit count must equal the audio channels; only the standard low 18 bits are valid. Other output formats reject it. None preserves the existing WAV encoding.
bitrate: u32MP3 bitrate in kbit/s.
compression_level: u8FLAC compression level, 0 through 8.
Trait Implementations§
Source§impl Clone for EncodeOptions
impl Clone for EncodeOptions
Source§fn clone(&self) -> EncodeOptions
fn clone(&self) -> EncodeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EncodeOptions
impl Debug for EncodeOptions
Auto Trait Implementations§
impl Freeze for EncodeOptions
impl RefUnwindSafe for EncodeOptions
impl Send for EncodeOptions
impl Sync for EncodeOptions
impl Unpin for EncodeOptions
impl UnsafeUnpin for EncodeOptions
impl UnwindSafe for EncodeOptions
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