com.limegroup.gnutella.gui.mp3
Class WaveStreamObuffer
java.lang.Object
javazoom.jl.decoder.Obuffer
com.limegroup.gnutella.gui.mp3.WaveStreamObuffer
- public final class WaveStreamObuffer
- extends javazoom.jl.decoder.Obuffer
Fields inherited from class javazoom.jl.decoder.Obuffer |
MAXCHANNELS, OBUFFERSIZE |
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 |
WaveStreamObuffer
public WaveStreamObuffer(int number_of_channels,
int freq)
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()