javazoom.jl.decoder
public class Decoder extends Object implements DecoderErrors
Decoder
class encapsulates the details of
decoding an MPEG audio frame.
Since: 0.0.5
Version: 0.0.7 12/12/99
Nested Class Summary | |
---|---|
static class | Decoder.Params
The Params class presents the customizable
aspects of the decoder.
|
Constructor Summary | |
---|---|
Decoder()
Creates a new Decoder instance with default
parameters. | |
Decoder(Decoder.Params params0)
Creates a new Decoder instance with default
parameters.
|
Method Summary | |
---|---|
Obuffer | decodeFrame(Header header, Bitstream stream)
Decodes one frame from an MPEG audio bitstream.
|
static Decoder.Params | getDefaultParams() |
int | getOutputBlockSize()
Retrieves the maximum number of samples that will be written to
the output buffer when one frame is decoded. |
int | getOutputChannels()
Retrieves the number of channels of PCM samples output by
this decoder. |
int | getOutputFrequency()
Retrieves the sample frequency of the PCM samples output
by this decoder. |
protected DecoderException | newDecoderException(int errorcode) |
protected DecoderException | newDecoderException(int errorcode, Throwable throwable) |
protected FrameDecoder | retrieveDecoder(Header header, Bitstream stream, int layer) |
void | setEqualizer(Equalizer eq) |
void | setOutputBuffer(Obuffer out)
Changes the output buffer. |
Decoder
instance with default
parameters.Decoder
instance with default
parameters.
Parameters: params The Params
instance that describes
the customizable aspects of the decoder.
Parameters: header The header describing the frame to decode. bitstream The bistream that provides the bits for te body of the frame.
Returns: A SampleBuffer containing the decoded samples.
Returns: The maximum number of samples that are written to the output buffer when decoding a single frame of MPEG audio.
Returns: The number of output channels in the decoded samples: 1 for mono, or 2 for stereo.
Parameters: the sample rate (in Hz) of the samples written to the output buffer when decoding.