com.limegroup.gnutella.gui.mp3
Class WaveStreamObuffer

java.lang.Object
  extended byjavazoom.jl.decoder.Obuffer
      extended bycom.limegroup.gnutella.gui.mp3.WaveStreamObuffer

public final class WaveStreamObuffer
extends javazoom.jl.decoder.Obuffer


Field Summary
 
Fields inherited from class javazoom.jl.decoder.Obuffer
MAXCHANNELS, OBUFFERSIZE
 
Constructor Summary
WaveStreamObuffer(int number_of_channels, int freq)
           
 
Method Summary
 void append(int channel, short value)
          append - append a value to the channel buffer
 void appendSamples(int channel, float[] f)
          Accepts 32 new PCM samples.
 void clear_buffer()
           
 void close()
           
 byte[] get_data()
          get_data - Used by Player to retrieve the output written to the Obuffer by the Decoder.
 void set_stop_flag()
           
 void write_buffer(int val)
          write_buffer - write a value to the buffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaveStreamObuffer

public WaveStreamObuffer(int number_of_channels,
                         int freq)
Method Detail

append

public final void append(int channel,
                         short value)
append - append a value to the channel buffer


appendSamples

public final void appendSamples(int channel,
                                float[] f)
Accepts 32 new PCM samples. Stolen from superclass.


write_buffer

public void write_buffer(int val)
write_buffer - write a value to the buffer


get_data

public byte[] get_data()
get_data - Used by Player to retrieve the output written to the Obuffer by the Decoder. The bytes are retrieved and sent directly to the SourceDataLine for playing.


close

public void close()

clear_buffer

public void clear_buffer()

set_stop_flag

public void set_stop_flag()