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 intBIG_ENDIANstatic intLITTLE_ENDIAN -
Constructor Summary
Constructors Constructor Description VorbisStream()VorbisStream(LogicalOggStream oggStream) -
Method Summary
Modifier and Type Method Description voidclose()CommentHeadergetCommentHeader()intgetCurrentBitRate()longgetCurrentGranulePosition()IdentificationHeadergetIdentificationHeader()protected de.jarnbjo.vorbis.SetupHeadergetSetupHeader()booleanisOpen()byte[]processPacket(byte[] packet)intreadPcm(byte[] buffer, int offset, int length)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
- Throws:
VorbisFormatExceptionjava.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[] buffer, int offset, int length) throws java.io.IOException- Throws:
java.io.IOException
-
getCurrentGranulePosition
public long getCurrentGranulePosition() -
getCurrentBitRate
public int getCurrentBitRate() -
processPacket
- Throws:
VorbisFormatExceptionjava.io.IOException
-