Struct raw_audio::Encoder[][src]

pub struct Encoder<W: Write, F: Frame, P: Pcm>(_, _);

Encoder for RAW Audio

Implementations

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

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

Create a new raw Audio encoder.

impl<W: Write, F: Frame> Encoder<W, F, U8>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, S8>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, MuLaw>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, ALaw>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, U16Le>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, U16Be>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, S16Le>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, S16Be>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, U24Le>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, U24Be>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, S24Le>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, S24Be>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, U32Le>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, U32Be>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, S32Le>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, S32Be>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, F32Le>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, F32Be>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, F64Le>[src]

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

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

impl<W: Write, F: Frame> Encoder<W, F, F64Be>[src]

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

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> RefUnwindSafe for Encoder<W, F, P> where
    F: RefUnwindSafe,
    P: RefUnwindSafe,
    W: RefUnwindSafe

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.