Ac3Util.SyncFrameInfo


public final class Ac3Util.SyncFrameInfo


Holds sample format information as presented by a syncframe header.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation Ac3Util.SyncFrameInfo.StreamType

AC3 stream types.

Constants

static final int

Type 0 AC3 stream type.

static final int

Type 1 AC3 stream type.

static final int

Type 2 AC3 stream type.

static final int

Undefined AC3 stream type.

Public fields

final int

The bitrate of audio samples.

final int

The number of audio channels

final int

The size of the frame.

final @Nullable String

The sample MIME type of the bitstream.

final int

Number of audio samples in the frame.

final int

The audio sampling rate in Hz.

final int

The type of the stream if mimeType is AUDIO_E_AC3, or STREAM_TYPE_UNDEFINED otherwise.

Constants

STREAM_TYPE_TYPE0

public static final int STREAM_TYPE_TYPE0 = 0

Type 0 AC3 stream type.

STREAM_TYPE_TYPE1

public static final int STREAM_TYPE_TYPE1 = 1

Type 1 AC3 stream type.

STREAM_TYPE_TYPE2

public static final int STREAM_TYPE_TYPE2 = 2

Type 2 AC3 stream type.

STREAM_TYPE_UNDEFINED

public static final int STREAM_TYPE_UNDEFINED = -1

Undefined AC3 stream type.

Public fields

bitrate

public final int bitrate

The bitrate of audio samples.

channelCount

public final int channelCount

The number of audio channels

frameSize

public final int frameSize

The size of the frame.

mimeType

public final @Nullable String mimeType

The sample MIME type of the bitstream. One of AUDIO_AC3 and AUDIO_E_AC3.

sampleCount

public final int sampleCount

Number of audio samples in the frame.

sampleRate

public final int sampleRate

The audio sampling rate in Hz.

streamType

@Ac3Util.SyncFrameInfo.StreamType
public final int streamType

The type of the stream if mimeType is AUDIO_E_AC3, or STREAM_TYPE_UNDEFINED otherwise.