BASS WMA

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

handleThe encoder handle.
bufferThe buffer containing the sample data.
lengthThe 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_HANDLEhandle is not valid.
BASS_ERROR_MEMThere is insufficient memory.
BASS_ERROR_UNKNOWNSome 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