BASS_Update


Updates the HSTREAM and HMUSIC channel playback buffers.

BOOL BASS_Update(
    DWORD length
);

Parameters

lengthThe amount of data to render, in milliseconds.

Return value

If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_NOTAVAILUpdating is already in progress.

Remarks

When automatic updating is disabled, this function or BASS_ChannelUpdate needs to be used to keep the playback buffers updated. The length parameter should include some safety margin, in case the next update cycle gets delayed. For example, if calling this function every 100ms, 200 would be a reasonable length parameter.

See also

BASS_ChannelUpdate, BASS_CONFIG_BUFFER, BASS_CONFIG_UPDATETHREADS