Class OggVorbisDecoder

java.lang.Object
games.stendhal.client.sound.system.SignalProcessor
games.stendhal.client.sound.system.processors.OggVorbisDecoder

public class OggVorbisDecoder extends SignalProcessor
Author:
silvio
  • Constructor Details

  • Method Details

    • init

      protected final void init(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) throws IOException
      Throws:
      IOException
    • readPage

      protected com.jcraft.jogg.Page readPage(boolean ignoreHoles, boolean updateStreamState) throws IOException
      Throws:
      IOException
    • readPacket

      protected com.jcraft.jogg.Packet readPacket(boolean ignoreHoles) throws IOException
      Throws:
      IOException
    • readHeader

      protected boolean readHeader() throws IOException
      Throws:
      IOException
    • read

      protected int read() throws IOException
      Throws:
      IOException
    • getOutputBuffer

      protected float[] getOutputBuffer()
    • generate

      protected boolean generate()
      Description copied from class: SignalProcessor
      This function should be overwritten by all classes that want to generate an PCM audio stream e.g. a mp3 decoder, a frequency generator, ...
      Overrides:
      generate in class SignalProcessor
      Returns:
      true, until the stream is finished
    • getNumChannels

      public int getNumChannels()
    • getSampleRate

      public int getSampleRate()
    • reachedEndOfStream

      public boolean reachedEndOfStream()
    • open

      public void open(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) throws IOException
      Throws:
      IOException
    • close

      public void close()