public final class

VorbisUtil.VorbisIdHeader

extends java.lang.Object

 java.lang.Object

↳androidx.media3.extractor.VorbisUtil.VorbisIdHeader

Overview

Vorbis identification header.

See the Vorbis spec/Identification header

Summary

Fields
public final intbitrateMaximum

The bitrate_maximum field, or Format.NO_VALUE if not greater than zero.

public final intbitrateMinimum

The bitrate_minimum field, or Format.NO_VALUE if not greater than zero.

public final intbitrateNominal

The bitrate_nominal field, or Format.NO_VALUE if not greater than zero.

public final intblockSize0

The blocksize_0 field.

public final intblockSize1

The blocksize_1 field.

public final intchannels

The audio_channels field.

public final byte[]data

The raw header data.

public final booleanframingFlag

The framing_flag field.

public final intsampleRate

The audio_sample_rate field.

public final intversion

The vorbis_version field.

Constructors
publicVorbisIdHeader(int version, int channels, int sampleRate, int bitrateMaximum, int bitrateNominal, int bitrateMinimum, int blockSize0, int blockSize1, boolean framingFlag, byte[] data[])

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final int version

The vorbis_version field.

public final int channels

The audio_channels field.

public final int sampleRate

The audio_sample_rate field.

public final int bitrateMaximum

The bitrate_maximum field, or Format.NO_VALUE if not greater than zero.

public final int bitrateNominal

The bitrate_nominal field, or Format.NO_VALUE if not greater than zero.

public final int bitrateMinimum

The bitrate_minimum field, or Format.NO_VALUE if not greater than zero.

public final int blockSize0

The blocksize_0 field.

public final int blockSize1

The blocksize_1 field.

public final boolean framingFlag

The framing_flag field.

public final byte[] data

The raw header data.

Constructors

public VorbisIdHeader(int version, int channels, int sampleRate, int bitrateMaximum, int bitrateNominal, int bitrateMinimum, int blockSize0, int blockSize1, boolean framingFlag, byte[] data[])

Parameters:

version: See VorbisUtil.VorbisIdHeader.version.
channels: See VorbisUtil.VorbisIdHeader.channels.
sampleRate: See VorbisUtil.VorbisIdHeader.sampleRate.
bitrateMaximum: See VorbisUtil.VorbisIdHeader.bitrateMaximum.
bitrateNominal: See VorbisUtil.VorbisIdHeader.bitrateNominal.
bitrateMinimum: See VorbisUtil.VorbisIdHeader.bitrateMinimum.
blockSize0: See VorbisUtil.VorbisIdHeader.version.
blockSize1: See VorbisUtil.VorbisIdHeader.blockSize1.
framingFlag: See VorbisUtil.VorbisIdHeader.framingFlag.
data: See VorbisUtil.VorbisIdHeader.data.