lameonj.decoder.std
Interface LAMEOnJStdDecoder


public interface LAMEOnJStdDecoder

The LAMEOnJStdDecoder is the starting interface of the LAMEOnJ decoder using an object oriented fashion to work with the LAME reflected C methods using the LAME standard API.

LAME decoder API only supports one decoding task open. Do not forget calling Decoder.close() before trying to create a new decoding task.

See Also:
LAMEOnJ.getLAMEOnJStdDecoder()

Method Summary
 GenericDecoder createGenericDecoder()
          Creates a new generic MP3 stream decoder.
 StreamDecoder createStreamDecoder(java.io.InputStream stream)
          Creates a new MP3 stream decoder using the specified MP3 stream as audio source.
 StreamDecoder createStreamDecoder(java.lang.String file)
          Creates a new MP3 stream decoder using the specified MP3 file as audio source.
 boolean isDecoderBlocked()
          Informs whether there is an unfinished decoding task.
 

Method Detail

createStreamDecoder

StreamDecoder createStreamDecoder(java.lang.String file)
Creates a new MP3 stream decoder using the specified MP3 file as audio source.

Parameters:
file - the path of the MP3 audio source.
Returns:
a new MP3 stream decoder.

createStreamDecoder

StreamDecoder createStreamDecoder(java.io.InputStream stream)
Creates a new MP3 stream decoder using the specified MP3 stream as audio source.

Initial data of the stream must contain the MP3 header.

Parameters:
stream - the stream of the MP3 audio source.
Returns:
a new MP3 stream decoder

createGenericDecoder

GenericDecoder createGenericDecoder()
Creates a new generic MP3 stream decoder.

Returns:
a new MP3 stream decoder

isDecoderBlocked

boolean isDecoderBlocked()
Informs whether there is an unfinished decoding task.

Returns:
true if exists a decoding task open.


Copyright © 2006-2008 Jose Maria Arranz. All Rights Reserved.