|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LAMEOnJStdEncoder
The LAMEOnJStdEncoder is the starting interface of the LAMEOnJ
encoder using an object oriented fashion to work with the LAME reflected
C methods using the LAME standard API.
LAMEOnJ.getLAMEOnJStdEncoder()| Method Summary | |
|---|---|
GenericEncoder |
createGenericEncoder()
Creates a new generic MP3 stream encoder. |
StreamEncoder |
createStreamEncoder(java.io.InputStream stream,
java.lang.String mime)
Creates a new MP3 stream encoder using the specified stream as audio source. |
StreamEncoder |
createStreamEncoder(java.lang.String file)
Creates a new MP3 stream encoder using the specified file as audio source. |
| Method Detail |
|---|
StreamEncoder createStreamEncoder(java.lang.String file)
If the specified file is a WAV file, the header is processed and extracted data as number of channels, mono/stereo, and sample rate are used to set up the LAME encoder.
file - the path of the audio source.
StreamEncoder createStreamEncoder(java.io.InputStream stream,
java.lang.String mime)
MIME type may be specified, if specified current version only supports WAV (audio/wav, audio/wave, audio/x-wav), otherwise raw PCM is supposed.
If WAV the header is processed as explained in createStreamEncoder(String)
stream - the stream of the audio source.mime - the MIME type of the source. May be null (raw PCM).
GenericEncoder createGenericEncoder()
If the specified file is a WAV file, the header is processed and extracted data as number of channels, mono/stereo, and sample rate are used to set up the LAME encoder.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||