pub struct Encoder { /* private fields */ }Expand description
An Opus encoder for one stream.
Implementations§
Source§impl Encoder
impl Encoder
Sourcepub fn new(channels: usize) -> Result<Self, OpusError>
pub fn new(channels: usize) -> Result<Self, OpusError>
An encoder for speech at SAMPLE_RATE.
Voip rather than Audio: it is the application Opus documents for interactive speech,
and it trades the things a conversation does not need for the latency a conversation
does.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl !Sync for Encoder
impl Unpin for Encoder
impl UnsafeUnpin for Encoder
impl UnwindSafe for Encoder
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