javazoom.jl.decoder
public class SampleBuffer extends Obuffer
SampleBuffer
class implements an output buffer
that provides storage for a fixed size block of samples.
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) |
void | clear_buffer() |
void | close() |
short[] | getBuffer() |
int | getBufferLength() |
int | getChannelCount() |
int | getSampleFrequency() |
void | set_stop_flag() |
void | write_buffer(int val)
Write the samples to the file (Random Acces). |