pub struct VorbisEncConfig {
pub sample_rate: u32,
pub channels: u8,
pub quality: f32,
}Expand description
Simplified Vorbis encoder configuration.
quality ranges from −0.1 (very low) to 1.0 (maximum quality),
matching the libvorbis VBR quality scale.
Fields§
§sample_rate: u32Audio sample rate in Hz (8000–192000).
channels: u8Number of audio channels (1–8).
quality: f32Quality from −0.1 (lowest) to 1.0 (highest). Default: 0.5 ≈ Q5.
Trait Implementations§
Source§impl Clone for VorbisEncConfig
impl Clone for VorbisEncConfig
Source§fn clone(&self) -> VorbisEncConfig
fn clone(&self) -> VorbisEncConfig
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 VorbisEncConfig
impl Debug for VorbisEncConfig
Auto Trait Implementations§
impl Freeze for VorbisEncConfig
impl RefUnwindSafe for VorbisEncConfig
impl Send for VorbisEncConfig
impl Sync for VorbisEncConfig
impl Unpin for VorbisEncConfig
impl UnsafeUnpin for VorbisEncConfig
impl UnwindSafe for VorbisEncConfig
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