BASS_WMA_EncodeWrite
Encodes sample data, and writes it to the file or network.
BOOL BASS_WMA_EncodeWrite(
HWMENCODE handle,
void *buffer,
DWORD length
);
Parameters
handle | The encoder handle.
|
buffer | The buffer containing the sample data.
|
length | The number of bytes in the buffer.
|
Return value
If successful, TRUE is returned, else FALSE is returned. Use
BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not valid.
|
BASS_ERROR_MEM | There is insufficient memory.
|
BASS_ERROR_UNKNOWN | Some other mystery problem!
|
Remarks
There is generally no need to call this function if the BASS_WMA_ENCODE_SOURCE flag has been set on the encoder, as the encoder will automatically be fed the data that its source BASS channel produces.
See also
BASS_WMA_EncodeOpen,
BASS_WMA_EncodeOpenFile,
BASS_WMA_EncodeOpenNetwork