BASS_SetBufferLength

Sets the amount that BASS mixes ahead new musics and streams.

void WINAPI BASS_SetBufferLength(
    float length
);

Parameters
lengthThe buffer length in seconds... limited to between 0.3s and 2.0s.

Remarks
Increasing the buffer length, decreases the chance of the sound possibly breaking-up on slower computers, but also requires more memory. Changing this setting only affects the musics/streams that you load/create afterwards, not the ones that have already been loaded/created. The default length is 0.5 secs.

This setting does not represent the latency (the delay between playing and hearing the sound). The latency primarily depends on the output device and it's drivers. If a driver has hardware support, then the latency should be very small. You can use BASS_GetInfo to check if a device has hardware support drivers.

The power of the CPU, and the complexity of what's being mixed (eg. an IT using filters requires more processing than a plain 4 channel MOD), also has an effect on the time taken to perform the initial processing required to start the playback of a music or stream.