Package org.emrick.project.audio
Class OggDecoder
java.lang.Object
org.emrick.project.audio.OggDecoder
...
Decode an OGG file to PCM data. This class is based on the example
code that accompanies the Java OGG libraries (hence the lack of detailed)
explanation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
The buffer used to read OGG fileprivate int
The conversion buffer size -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
convsize
private int convsizeThe conversion buffer size -
convbuffer
private byte[] convbufferThe buffer used to read OGG file
-
-
Constructor Details
-
OggDecoder
public OggDecoder()Create a new OGG decoder
-
-
Method Details
-
getData
Get the data out of an OGG file- Parameters:
input
- The input stream from which to read the OGG file- Returns:
- The data describing the OGG thats been read
- Throws:
IOException
-