|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavazoom.jl.decoder.Decoder
The Decoder
class encapsulates the details of
decoding an MPEG audio frame.
Nested Class Summary | |
static class |
Decoder.Params
The Params class presents the customizable
aspects of the decoder. |
Field Summary |
Fields inherited from interface javazoom.jl.decoder.DecoderErrors |
UNKNOWN_ERROR, UNSUPPORTED_LAYER |
Fields inherited from interface javazoom.jl.decoder.JavaLayerErrors |
BITSTREAM_ERROR, DECODER_ERROR |
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,
java.lang.Throwable throwable)
|
protected FrameDecoder |
retrieveDecoder(Header header,
Bitstream stream,
int layer)
|
void |
setEqualizer(Equalizer eq)
|
void |
setOutputBuffer(Obuffer out)
Changes the output buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Decoder()
Decoder
instance with default
parameters.
public Decoder(Decoder.Params params0)
Decoder
instance with default
parameters.
Method Detail |
public static Decoder.Params getDefaultParams()
public void setEqualizer(Equalizer eq)
public Obuffer decodeFrame(Header header, Bitstream stream) throws DecoderException
header
- The header describing the frame to decode.
DecoderException
public void setOutputBuffer(Obuffer out)
public int getOutputFrequency()
public int getOutputChannels()
public int getOutputBlockSize()
protected DecoderException newDecoderException(int errorcode)
protected DecoderException newDecoderException(int errorcode, java.lang.Throwable throwable)
protected FrameDecoder retrieveDecoder(Header header, Bitstream stream, int layer) throws DecoderException
DecoderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |