|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamDecoder
This interface may be used to decode the specified source file or stream to MP3 with only one call or progressively by chunks.
A decoding process must start decoding MP3 headers, the method
decodeHeaders()
must be called first.
LAMEOnJStdDecoder.createStreamDecoder(String)
,
LAMEOnJStdDecoder.createStreamDecoder(InputStream)
Method Summary | |
---|---|
void |
decode(java.io.OutputStream wavStream)
Decodes the MP3 input source to WAV saving to the specified stream. |
void |
decode(java.lang.String wavFile)
Decodes the MP3 input source to WAV saving to the specified file. |
PCMFrame |
decodeFrame()
Decodes source MP3 data to build one PCM frame. |
mp3data_struct |
decodeHeaders()
Decodes source MP3 data until MP3 header info is obtained. |
java.io.InputStream |
getSourceInputStream()
Returns the input stream used to decode. |
Methods inherited from interface lameonj.decoder.std.Decoder |
---|
close, fixWAVHeader, getMP3DataStruct, getPCMDataSize, isClosed, isMP3HeaderComplete, writeDecodedFrame, writeWAVHeader |
Method Detail |
---|
java.io.InputStream getSourceInputStream()
mp3data_struct decodeHeaders()
PCMFrame decodeFrame()
void decode(java.lang.String wavFile)
The decoder task is automatically closed.
wavFile
- the WAV file path.void decode(java.io.OutputStream wavStream)
The decoder task is automatically closed.
wavStream
- the WAV output stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |