pub enum AudioEncodeFormat {
Wav(WavBitDepth),
Flac(u16),
OggFlac(u16),
Mp3,
}Expand description
Export format selector for encode_audio_to_file.
Variants§
Wav(WavBitDepth)
Microsoft RIFF/WAVE, integer or float PCM.
Flac(u16)
Native FLAC (*.flac). The u16 is the desired bit depth
(16, 24 or 32).
OggFlac(u16)
Ogg-encapsulated FLAC (*.ogg). The u16 is the desired bit
depth (16, 24 or 32).
Mp3
MPEG-1/2/2.5 Layer III (*.mp3). Uses a sensible CBR bitrate
chosen from the standard Layer III ladder based on sample rate
and channel count.
Trait Implementations§
Source§impl Clone for AudioEncodeFormat
impl Clone for AudioEncodeFormat
Source§fn clone(&self) -> AudioEncodeFormat
fn clone(&self) -> AudioEncodeFormat
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 moreimpl Copy for AudioEncodeFormat
Source§impl Debug for AudioEncodeFormat
impl Debug for AudioEncodeFormat
impl Eq for AudioEncodeFormat
Source§impl PartialEq for AudioEncodeFormat
impl PartialEq for AudioEncodeFormat
impl StructuralPartialEq for AudioEncodeFormat
Auto Trait Implementations§
impl Freeze for AudioEncodeFormat
impl RefUnwindSafe for AudioEncodeFormat
impl Send for AudioEncodeFormat
impl Sync for AudioEncodeFormat
impl Unpin for AudioEncodeFormat
impl UnsafeUnpin for AudioEncodeFormat
impl UnwindSafe for AudioEncodeFormat
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,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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