|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BeStream
The BeStream is the interface implemented by the internal
class wrapping the encoding stream lifecycle.
Unless the close() is called a BeStream
holds a previously initiated LAME stream with:
BladeMP3EncDLL.beInitStream(BE_CONFIG,NativeInteger,NativeInteger,NativeInteger).
If the stream is closed the instance must be discarded.
LAMEOnJBlade.initStream(BeConfig)| Method Summary | |
|---|---|
void |
close()
Closes the stream, the instance must be discarded. |
int |
deinitStream(byte[] pOutput)
Flushes to the output buffer the internal encoder data remaining. |
int |
encodeChunk(int nSamples,
byte[] pSamples,
byte[] pOutput)
Encodes a chunk of audio samples, the output data is written to the output buffer. |
int |
encodeChunk(int nSamples,
short[] pSamples,
byte[] pOutput)
Encodes a chunk of audio samples, the output data is written to the output buffer. |
int |
encodeChunkFloatS16NI(int hbeStream,
int nSamples,
float[] buffer_l,
float[] buffer_r,
byte[] pOutput)
Undocumented method. |
int |
flushNoGap(int hbeStream,
byte[] pOutput)
Undocumented method. |
int |
getHandle()
Returns the stream handle used by LAME. |
int |
getNSamples()
Returns the maximum number of samples per encoding call. |
int |
getOutputBufferSize()
Returns the maximum output buffer size per encoding call. |
boolean |
isOpen()
Returns true if the encoding stream is open. |
| Method Detail |
|---|
int getHandle()
phbeStream parameter by the call
BladeMP3EncDLL.beInitStream(BE_CONFIG,NativeInteger,NativeInteger,NativeInteger)
and used to encode.
int getNSamples()
pDwSamples parameter by the call
BladeMP3EncDLL.beInitStream(BE_CONFIG,NativeInteger,NativeInteger,NativeInteger).
encodeChunk(int,short[],byte[])int getOutputBufferSize()
pDwSamples parameter by the call
BladeMP3EncDLL.beInitStream(BE_CONFIG,NativeInteger,NativeInteger,NativeInteger).
encodeChunk(int,short[],byte[])boolean isOpen()
void close()
BladeMP3EncDLL.beCloseStream(int) is called.
int deinitStream(byte[] pOutput)
BladeMP3EncDLL.beInitStream(BE_CONFIG,NativeInteger,NativeInteger,NativeInteger)
is called.
pOutput - the output buffer receiving the remaining data.
int encodeChunk(int nSamples,
short[] pSamples,
byte[] pOutput)
BladeMP3EncDLL.beEncodeChunk(int,int,short[],byte[],NativeInteger)
is called.
nSamples - the number of samples to be encoded.pSamples - the samples buffer to be written.pOutput - the output buffer receiving the encoded data.
int encodeChunk(int nSamples,
byte[] pSamples,
byte[] pOutput)
nSamples - the number of samples to be encoded.pSamples - the samples buffer in bytes (two bytes per sample) to be written.pOutput - the output buffer receiving the encoded data.
encodeChunk(int,short[],byte[])
int encodeChunkFloatS16NI(int hbeStream,
int nSamples,
float[] buffer_l,
float[] buffer_r,
byte[] pOutput)
int flushNoGap(int hbeStream,
byte[] pOutput)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||