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

An audio frame with mutable data.

Implementations§

Create an audio frame containing silence. The time base of the frame will be in microseconds.

Get frame sample format.

Get frame sample rate.

Get number of samples (per channel) in this frame.

Get sample data planes for this frame.

Get mutable sample data planes for this frame.

Get channel layout.

Get frame time base.

Set frame time base. (This will rescale the current timestamp into a given time base.)

Get presentation timestamp.

Set presentation timestamp.

Make the frame immutable.

Trait Implementations§

Executes the destructor for this type. Read more
Converts to this type from the input type.
Converts to this type from the input type.

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.