Class PCMStreamConverter

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

public class PCMStreamConverter extends SignalProcessor
Author:
silvio
  • Constructor Details

    • PCMStreamConverter

      public PCMStreamConverter(InputStream stream, AudioFormat format, int outputNumSamplesPerChannel)
  • Method Details

    • reachedEndOfStream

      public boolean reachedEndOfStream()
    • open

      public void open(InputStream stream, AudioFormat format, int outputNumSamplesPerChannel)
    • close

      public void close()
    • 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