de.jarnbjo.vorbis
Class VorbisStream
java.lang.Object
de.jarnbjo.vorbis.VorbisStream
- public class VorbisStream
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VorbisStream
public VorbisStream()
VorbisStream
public VorbisStream(LogicalOggStream oggStream)
throws VorbisFormatException,
java.io.IOException
getIdentificationHeader
public IdentificationHeader getIdentificationHeader()
getCommentHeader
public CommentHeader getCommentHeader()
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
public byte[] processPacket(byte[] packet)
throws VorbisFormatException,
java.io.IOException
- Throws:
VorbisFormatException
java.io.IOException