BASS_CONFIG_SPLIT_BUFFER config option

The splitter buffer length.

BASS_SetConfig(
    BASS_CONFIG_SPLIT_BUFFER,
    DWORD length
);

Parameters

lengthThe buffer length in milliseconds.

Remarks

When a source has its first splitter stream created, a buffer is allocated to hold its sample data, which all of its subsequently created splitter streams will share. This config option determines how big that buffer is. The default is 2000ms.

The buffer will always be kept as empty as possible, so its size does not necessarily affect latency; it just determines how far splitter streams can drift apart before there are buffer overflow issues for those left behind.

Changes do not affect buffers that have already been allocated; any sources that have already had splitter streams created will continue to use their existing buffers.

See also

BASS_Split_StreamCreate