javazoom.jl.decoder

Class Obuffer

public abstract class Obuffer extends Object

Base Class for audio output.
Field Summary
static intMAXCHANNELS
static intOBUFFERSIZE
Method Summary
abstract voidappend(int channel, short value)
Takes a 16 Bit PCM sample.
voidappendSamples(int channel, float[] f)
Accepts 32 new PCM samples.
abstract voidclear_buffer()
Clears all data in the buffer (for seeking).
abstract voidclose()
abstract voidset_stop_flag()
Notify the buffer that the user has stopped the stream.
abstract voidwrite_buffer(int val)
Write the samples to the file or directly to the audio hardware.

Field Detail

MAXCHANNELS

public static final int MAXCHANNELS

OBUFFERSIZE

public static final int OBUFFERSIZE

Method Detail

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.

clear_buffer

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

close

public abstract void close()

set_stop_flag

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

write_buffer

public abstract void write_buffer(int val)
Write the samples to the file or directly to the audio hardware.
JavaZOOM 1999-2005