Ac3Util.SyncFrameInfo


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 = )
annotation Ac3Util.SyncFrameInfo.StreamType

AC3 stream types.

Constants

const Int

Type 0 AC3 stream type.

const Int

Type 1 AC3 stream type.

const Int

Type 2 AC3 stream type.

const Int

Undefined AC3 stream type.

Public properties

Int

The bitrate of audio samples.

Int

The number of audio channels

Int

The size of the frame.

String?

The sample MIME type of the bitstream.

Int

Number of audio samples in the frame.

Int

The audio sampling rate in Hz.

Int

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

Constants

STREAM_TYPE_TYPE0

const val STREAM_TYPE_TYPE0 = 0: Int

Type 0 AC3 stream type.

STREAM_TYPE_TYPE1

const val STREAM_TYPE_TYPE1 = 1: Int

Type 1 AC3 stream type.

STREAM_TYPE_TYPE2

const val STREAM_TYPE_TYPE2 = 2: Int

Type 2 AC3 stream type.

STREAM_TYPE_UNDEFINED

const val STREAM_TYPE_UNDEFINED = -1: Int

Undefined AC3 stream type.

Public properties

bitrate

val bitrateInt

The bitrate of audio samples.

channelCount

val channelCountInt

The number of audio channels

frameSize

val frameSizeInt

The size of the frame.

mimeType

val mimeTypeString?

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

sampleCount

val sampleCountInt

Number of audio samples in the frame.

sampleRate

val sampleRateInt

The audio sampling rate in Hz.

streamType

@Ac3Util.SyncFrameInfo.StreamType
val streamTypeInt

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