pub struct EncodeOptions {
pub format: Option<String>,
pub bit_depth: Option<u16>,
pub float: bool,
pub bitrate: Option<u32>,
pub vbr: bool,
pub dither: Option<String>,
pub seed: u64,
pub tags: BTreeMap<String, String>,
}Expand description
Encoding options for an output.
Fields§
§format: Option<String>Container/codec name (wav, flac, mp3, ogg, opus, m4a, aiff). Inferred
from the path extension when None.
bit_depth: Option<u16>§float: boolWrite 32-bit float WAV.
bitrate: Option<u32>§vbr: bool§dither: Option<String>triangular (default when reducing bit depth), shaped, none.
seed: u64Trait Implementations§
Source§impl Clone for EncodeOptions
impl Clone for EncodeOptions
Source§impl Debug for EncodeOptions
impl Debug for EncodeOptions
Source§impl Default for EncodeOptions
impl Default 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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