org.gagravarr.vorbis
Class VorbisAudioData

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

public class VorbisAudioData
extends VorbisPacket

Raw, compressed audio data


Field Summary
 
Fields inherited from class org.gagravarr.vorbis.VorbisPacket
HEADER_LENGTH_AUDIO, HEADER_LENGTH_METADATA, TYPE_COMMENTS, TYPE_INFO, TYPE_SETUP
 
Constructor Summary
VorbisAudioData(byte[] data)
           
VorbisAudioData(OggPacket pkt)
           
 
Method Summary
 long getGranulePosition()
          Returns the granule position, or -1 if this wasn't read from a file
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.
 void setGranulePosition(long granulePosition)
           
 
Methods inherited from class org.gagravarr.vorbis.VorbisPacket
create, isVorbisStream, populateMetadataHeader
 
Methods inherited from class org.gagravarr.ogg.HighLevelOggStreamPacket
getData, getOggPacket, setData, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VorbisAudioData

public VorbisAudioData(OggPacket pkt)

VorbisAudioData

public VorbisAudioData(byte[] data)
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

getGranulePosition

public long getGranulePosition()
Returns the granule position, or -1 if this wasn't read from a file


setGranulePosition

public void setGranulePosition(long granulePosition)


Copyright © 2012. All Rights Reserved.