Struct lame::Lame [] [src]

pub struct Lame { /* fields omitted */ }

Represents a Lame encoder context.

Methods

impl Lame
[src]

[src]

Creates a new Lame encoder context with default parameters.

Returns None if liblame could not allocate its internal structures.

[src]

Sample rate of input PCM data. Defaults to 44100 Hz.

[src]

Sets sample rate of input PCM data.

[src]

Number of channels in input stream. Defaults to 2.

[src]

Sets number of channels in input stream.

[src]

LAME quality parameter. See set_quality for more details.

[src]

Sets LAME's quality parameter. True quality is determined by the bitrate but this parameter affects quality by influencing whether LAME selects expensive or cheap algorithms.

This is a number from 0 to 9 (inclusive), where 0 is the best and slowest and 9 is the worst and fastest.

[src]

Returns the output bitrate in kilobits per second.

[src]

Sets the target output bitrate. This value is in kilobits per second, so passing 320 would select an output bitrate of 320kbps.

[src]

Sets more internal parameters according to the other basic parameter settings.

[src]

Encodes PCM data into MP3 frames. The pcm_left and pcm_right buffers must be of the same length, or this function will panic.

Trait Implementations

impl Drop for Lame
[src]

[src]

Executes the destructor for this type. Read more