pub struct AudioEncoder { /* private fields */ }
Expand description

Audio encoder.

Implementations§

Create a new encoder builder from given codec parameters.

Get encoder builder for a given codec.

Number of samples per audio channel in an audio frame. Each encoded frame except the last one must contain exactly this number of samples. The method returns None if the number of samples per frame is not restricted.

Trait Implementations§

Get codec parameters.
Push a given frame to the encoder.
Flush the encoder.
Take the next packet from the encoder.
Push a given frame to the encoder. Read more
Flush the encoder. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.