BASS

BASS_CONFIG_REC_BUFFER config option


The buffer length for recording channels.

BASS_SetConfig(
    BASS_CONFIG_REC_BUFFER,
    DWORD length
);

Parameters

lengthThe buffer length in milliseconds... 1000 (min) - 5000 (max). If the length specified is outside this range, it is automatically capped.

Remarks

Unlike a playback buffer, where the aim is to keep the buffer full, a recording buffer is kept as empty as possible and so this setting has no effect on latency. The default recording buffer length is 2000 milliseconds. Unless processing of the recorded data could cause significant delays, or you want to use a large recording period with BASS_RecordStart, there should be no need to increase this.

Using this config option only affects the recording channels that are created afterwards, not any that have already been created. So it is possible to have channels with differing buffer lengths by using this config option each time before creating them.

See also

BASS_GetConfig, BASS_RecordStart, BASS_SetConfig