Encoder

Struct Encoder 

Source
pub struct Encoder<W: Write, F: Frame, P: Pcm>(/* private fields */);
Expand description

Encoder for RAW Audio

Implementations§

Source§

impl<W: Write, F: Frame, P: Pcm> Encoder<W, F, P>

Source

pub fn new(writer: W, pcm: P) -> Self

Create a new raw Audio encoder.

Source§

impl<W: Write, F: Frame> Encoder<W, F, U8>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, S8>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, MuLaw>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, ALaw>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, U16Le>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, U16Be>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, S16Le>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, S16Be>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, U24Le>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, U24Be>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, S24Le>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, S24Be>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, U32Le>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, U32Be>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, S32Le>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, S32Be>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, F32Le>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, F32Be>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, F64Le>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Source§

impl<W: Write, F: Frame> Encoder<W, F, F64Be>

Source

pub fn encode<S: Stream<F>>(&mut self, stream: S) -> Result<()>

Append encoded data from a stream to the output. This can be called multiple times to encode as needed instead of all at once.

Auto Trait Implementations§

§

impl<W, F, P> Freeze for Encoder<W, F, P>
where W: Freeze,

§

impl<W, F, P> RefUnwindSafe for Encoder<W, F, P>

§

impl<W, F, P> Send for Encoder<W, F, P>
where W: Send, F: Send, P: Send,

§

impl<W, F, P> Sync for Encoder<W, F, P>
where W: Sync, F: Sync, P: Sync,

§

impl<W, F, P> Unpin for Encoder<W, F, P>
where W: Unpin, P: Unpin,

§

impl<W, F, P> UnwindSafe for Encoder<W, F, P>
where W: UnwindSafe, F: UnwindSafe, P: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.