Sends a RIFF chunk to an encoder.
BOOL BASS_Encode_AddChunk( HENCODE handle, char *id, void *buffer, DWORD length );
|handle||The encoder handle.|
|id||The 4 character chunk id.|
|buffer||The buffer containing the chunk data.|
|length||The number of bytes in the buffer.|
|BASS_ERROR_HANDLE||handle is not valid.|
|BASS_ERROR_NOTAVAIL||No RIFF headers/chunks are being sent to the encoder (due to the BASS_ENCODE_NOHEAD flag being in effect), or sample data encoding has started.|
|BASS_ERROR_ENDED||The encoder has died.|
Chunks can only be added prior to sample data being sent to the encoder. The BASS_ENCODE_PAUSE flag can be used when starting the encoder to ensure that no sample data is sent before additional chunks have been set.