Sends sample data to an encoder or all encoders on a channel.
BOOL BASS_Encode_Write( DWORD handle, void *buffer, DWORD length );
|handle||The encoder or channel handle... a HENCODE, HSTREAM, HMUSIC, or HRECORD.|
|buffer||The buffer containing the sample data.|
|length||The number of bytes in the buffer.|
|BASS_ERROR_HANDLE||handle is not valid.|
|BASS_ERROR_ENDED||No more data may be fed to the encoder. The encoder has died, or the encoder's queue is being processed before it is closed.|
When queued encoding is enabled, this function will return successfully even if the queue did not have space for all of the provided data. BASS_Encode_GetCount can be used to check that there is sufficient space prior to calling this function.