Class VorbisUtil.VorbisIdHeader
- java.lang.Object
-
- com.google.android.exoplayer2.extractor.VorbisUtil.VorbisIdHeader
-
- Enclosing class:
- VorbisUtil
public static final class VorbisUtil.VorbisIdHeader extends Object
Vorbis identification header.
-
-
Field Summary
Fields Modifier and Type Field Description int
bitrateMaximum
Thebitrate_maximum
field, orFormat.NO_VALUE
if not greater than zero.int
bitrateMinimum
Thebitrate_minimum
field, orFormat.NO_VALUE
if not greater than zero.int
bitrateNominal
Thebitrate_nominal
field, orFormat.NO_VALUE
if not greater than zero.int
blockSize0
Theblocksize_0
field.int
blockSize1
Theblocksize_1
field.int
channels
Theaudio_channels
field.byte[]
data
The raw header data.boolean
framingFlag
Theframing_flag
field.int
sampleRate
Theaudio_sample_rate
field.int
version
Thevorbis_version
field.
-
Constructor Summary
Constructors Constructor Description VorbisIdHeader(int version, int channels, int sampleRate, int bitrateMaximum, int bitrateNominal, int bitrateMinimum, int blockSize0, int blockSize1, boolean framingFlag, byte[] data)
-
-
-
Field Detail
-
version
public final int version
Thevorbis_version
field.
-
channels
public final int channels
Theaudio_channels
field.
-
sampleRate
public final int sampleRate
Theaudio_sample_rate
field.
-
bitrateMaximum
public final int bitrateMaximum
Thebitrate_maximum
field, orFormat.NO_VALUE
if not greater than zero.
-
bitrateNominal
public final int bitrateNominal
Thebitrate_nominal
field, orFormat.NO_VALUE
if not greater than zero.
-
bitrateMinimum
public final int bitrateMinimum
Thebitrate_minimum
field, orFormat.NO_VALUE
if not greater than zero.
-
blockSize0
public final int blockSize0
Theblocksize_0
field.
-
blockSize1
public final int blockSize1
Theblocksize_1
field.
-
framingFlag
public final boolean framingFlag
Theframing_flag
field.
-
data
public final byte[] data
The raw header data.
-
-
Constructor Detail
-
VorbisIdHeader
public VorbisIdHeader(int version, int channels, int sampleRate, int bitrateMaximum, int bitrateNominal, int bitrateMinimum, int blockSize0, int blockSize1, boolean framingFlag, byte[] data)
- Parameters:
version
- Seeversion
.channels
- Seechannels
.sampleRate
- SeesampleRate
.bitrateMaximum
- SeebitrateMaximum
.bitrateNominal
- SeebitrateNominal
.bitrateMinimum
- SeebitrateMinimum
.blockSize0
- Seeversion
.blockSize1
- SeeblockSize1
.framingFlag
- SeeframingFlag
.data
- Seedata
.
-
-