Package de.jarnbjo.vorbis
Class VorbisStream
java.lang.Object
de.jarnbjo.vorbis.VorbisStream
public class VorbisStream
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static int
BIG_ENDIAN
static int
LITTLE_ENDIAN
-
Constructor Summary
Constructors Constructor Description VorbisStream()
VorbisStream(LogicalOggStream logicalOggStream)
-
Method Summary
Modifier and Type Method Description void
close()
CommentHeader
getCommentHeader()
int
getCurrentBitRate()
long
getCurrentGranulePosition()
IdentificationHeader
getIdentificationHeader()
protected de.jarnbjo.vorbis.SetupHeader
getSetupHeader()
boolean
isOpen()
byte[]
processPacket(byte[] byteArray)
int
readPcm(byte[] byteArray, int int1, int int2)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
BIG_ENDIAN
public static final int BIG_ENDIAN- See Also:
- Constant Field Values
-
LITTLE_ENDIAN
public static final int LITTLE_ENDIAN- See Also:
- Constant Field Values
-
-
Constructor Details
-
VorbisStream
public VorbisStream() -
VorbisStream
public VorbisStream(LogicalOggStream logicalOggStream) throws VorbisFormatException, java.io.IOException- Throws:
VorbisFormatException
java.io.IOException
-
-
Method Details
-
getIdentificationHeader
-
getCommentHeader
-
getSetupHeader
protected de.jarnbjo.vorbis.SetupHeader getSetupHeader() -
isOpen
public boolean isOpen() -
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
readPcm
public int readPcm(byte[] byteArray, int int1, int int2) throws java.io.IOException- Throws:
java.io.IOException
-
getCurrentGranulePosition
public long getCurrentGranulePosition() -
getCurrentBitRate
public int getCurrentBitRate() -
processPacket
- Throws:
VorbisFormatException
java.io.IOException
-