pub struct AudioEncoderConfig {
pub codec: AudioCodec,
pub sample_rate: u32,
pub channels: u8,
pub bitrate: u32,
}Fields§
§codec: AudioCodec§sample_rate: u32Input sample rate the caller will feed AudioEncoder::encode.
The encoder transparently resamples to its native rate (48 kHz
for Opus) when this differs.
channels: u8§bitrate: u32Target bitrate in bits per second.
Trait Implementations§
Source§impl Clone for AudioEncoderConfig
impl Clone for AudioEncoderConfig
Source§fn clone(&self) -> AudioEncoderConfig
fn clone(&self) -> AudioEncoderConfig
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 moreAuto Trait Implementations§
impl Freeze for AudioEncoderConfig
impl RefUnwindSafe for AudioEncoderConfig
impl Send for AudioEncoderConfig
impl Sync for AudioEncoderConfig
impl Unpin for AudioEncoderConfig
impl UnsafeUnpin for AudioEncoderConfig
impl UnwindSafe for AudioEncoderConfig
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