Class OggDecoder

java.lang.Object
org.emrick.project.audio.OggDecoder

public class OggDecoder extends Object
... 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 Details

    • convsize

      private int convsize
      The conversion buffer size
    • convbuffer

      private byte[] convbuffer
      The buffer used to read OGG file
  • Constructor Details

    • OggDecoder

      public OggDecoder()
      Create a new OGG decoder
  • Method Details

    • getData

      public OggData getData(InputStream input) throws IOException
      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