AudioEncoderConfig

@RequiresApi(value = 21)  @AutoValue public abstract class AudioEncoderConfig implements EncoderConfig


Summary

Nested types

AudioEncoderConfig.Builder

The builder of the config.

Public methods

static @NonNull AudioEncoderConfig.Builder

Returns a build for this config.

abstract @NonNull int

Gets the bitrate.

abstract @NonNull int

Gets the channel count.

abstract @Override @NonNull String

The mime type of the encoder.

abstract @NonNull int

Gets the sample bitrate.

@NonNull @Override MediaFormat

Transfers the config to a .

Public methods

builder

@NonNull
public static AudioEncoderConfig.Builder builder()

Returns a build for this config.

getBitrate

@NonNull
public abstract int getBitrate()

Gets the bitrate.

getChannelCount

@NonNull
public abstract int getChannelCount()

Gets the channel count.

getMimeType

@Override
@NonNull
public abstract @Override String getMimeType()

The mime type of the encoder.

For example, "video/avc" for a video encoder and "audio/mp4a-latm" for an audio encoder.

getSampleRate

@NonNull
public abstract int getSampleRate()

Gets the sample bitrate.

toMediaFormat

@NonNull
@Override
public @Override MediaFormat toMediaFormat()

Transfers the config to a .