Class Obuffer

java.lang.Object
javazoom.jl.decoder.Obuffer
Direct Known Subclasses:
SampleBuffer, WaveFileObuffer

public abstract class Obuffer extends Object
Base Class for audio output.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    append(int channel, short value)
    Takes a 16 Bit PCM sample.
    void
    appendSamples(int channel, float[] f)
    Accepts 32 new PCM samples.
    abstract void
    Clears all data in the buffer (for seeking).
    abstract void
     
    abstract void
    Notify the buffer that the user has stopped the stream.
    abstract void
    write_buffer(int val)
    Write the samples to the file or directly to the audio hardware.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Obuffer

      public Obuffer()
  • Method Details

    • append

      public abstract void append(int channel, short value)
      Takes a 16 Bit PCM sample.
    • appendSamples

      public void appendSamples(int channel, float[] f)
      Accepts 32 new PCM samples.
    • write_buffer

      public abstract void write_buffer(int val)
      Write the samples to the file or directly to the audio hardware.
    • close

      public abstract void close()
    • clear_buffer

      public abstract void clear_buffer()
      Clears all data in the buffer (for seeking).
    • set_stop_flag

      public abstract void set_stop_flag()
      Notify the buffer that the user has stopped the stream.