|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javazoom.jl.decoder.Obuffer javazoom.jl.decoder.SampleBuffer
public class SampleBuffer
The SampleBuffer
class implements an output buffer
that provides storage for a fixed size block of samples.
Field Summary |
---|
Fields inherited from class javazoom.jl.decoder.Obuffer |
---|
MAXCHANNELS, OBUFFERSIZE |
Constructor Summary | |
---|---|
SampleBuffer(int sample_frequency,
int number_of_channels)
Constructor |
Method Summary | |
---|---|
void |
append(int channel,
short value)
Takes a 16 Bit PCM sample. |
void |
appendSamples(int channel,
float[] f)
Accepts 32 new PCM samples. |
void |
clear_buffer()
Clears all data in the buffer (for seeking). |
void |
close()
|
short[] |
getBuffer()
|
int |
getBufferLength()
|
int |
getChannelCount()
|
int |
getSampleFrequency()
|
void |
set_stop_flag()
Notify the buffer that the user has stopped the stream. |
void |
write_buffer(int val)
Write the samples to the file (Random Acces). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleBuffer(int sample_frequency, int number_of_channels)
Method Detail |
---|
public int getChannelCount()
public int getSampleFrequency()
public short[] getBuffer()
public int getBufferLength()
public void append(int channel, short value)
append
in class Obuffer
public void appendSamples(int channel, float[] f)
Obuffer
appendSamples
in class Obuffer
public void write_buffer(int val)
write_buffer
in class Obuffer
public void close()
close
in class Obuffer
public void clear_buffer()
Obuffer
clear_buffer
in class Obuffer
public void set_stop_flag()
Obuffer
set_stop_flag
in class Obuffer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |