org.gagravarr.vorbis
Class VorbisInfo

java.lang.Object
  extended by org.gagravarr.ogg.HighLevelOggStreamPacket
      extended by org.gagravarr.vorbis.VorbisPacket
          extended by org.gagravarr.vorbis.VorbisInfo

public class VorbisInfo
extends VorbisPacket

The identification header identifies the bitstream as Vorbis, Vorbis version, and the simple audio characteristics of the stream such as sample rate and number of channels.


Field Summary
 
Fields inherited from class org.gagravarr.vorbis.VorbisPacket
HEADER_LENGTH_AUDIO, HEADER_LENGTH_METADATA, TYPE_COMMENTS, TYPE_INFO, TYPE_SETUP
 
Constructor Summary
VorbisInfo()
           
VorbisInfo(OggPacket pkt)
           
 
Method Summary
 int getBitrateLower()
           
 int getBitrateNominal()
           
 int getBitrateUpper()
           
 int getBlocksize0()
           
 int getBlocksize1()
           
 int getChannels()
           
protected  int getHeaderSize()
          How big is the header on this packet? For Metadata packets it's normally 7 bytes, otherwise for audio packets there is no header.
 long getRate()
           
 int getVersion()
           
 void setBitrateLower(int bitrateLower)
           
 void setBitrateNominal(int bitrateNominal)
           
 void setBitrateUpper(int bitrateUpper)
           
 void setBlocksize0(int blocksize)
           
 void setBlocksize1(int blocksize)
           
 void setChannels(int channels)
           
 void setRate(long rate)
           
 OggPacket write()
           
 
Methods inherited from class org.gagravarr.vorbis.VorbisPacket
create, isVorbisStream, populateMetadataHeader
 
Methods inherited from class org.gagravarr.ogg.HighLevelOggStreamPacket
getData, getOggPacket, setData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VorbisInfo

public VorbisInfo()

VorbisInfo

public VorbisInfo(OggPacket pkt)
Method Detail

getHeaderSize

protected int getHeaderSize()
Description copied from class: VorbisPacket
How big is the header on this packet? For Metadata packets it's normally 7 bytes, otherwise for audio packets there is no header.

Specified by:
getHeaderSize in class VorbisPacket

write

public OggPacket write()
Overrides:
write in class HighLevelOggStreamPacket

getVersion

public int getVersion()

getChannels

public int getChannels()

setChannels

public void setChannels(int channels)

getRate

public long getRate()

setRate

public void setRate(long rate)

getBitrateUpper

public int getBitrateUpper()

setBitrateUpper

public void setBitrateUpper(int bitrateUpper)

getBitrateNominal

public int getBitrateNominal()

setBitrateNominal

public void setBitrateNominal(int bitrateNominal)

getBitrateLower

public int getBitrateLower()

setBitrateLower

public void setBitrateLower(int bitrateLower)

getBlocksize0

public int getBlocksize0()

setBlocksize0

public void setBlocksize0(int blocksize)

getBlocksize1

public int getBlocksize1()

setBlocksize1

public void setBlocksize1(int blocksize)


Copyright © 2012. All Rights Reserved.