BASS

BASS_CONFIG_ASYNCFILE_BUFFER config option


The buffer length for asynchronous file reading.

BASS_SetConfig(
    BASS_CONFIG_ASYNCFILE_BUFFER,
    DWORD length
);

Parameters

lengthThe buffer length in bytes. This will be rounded up to the nearest 4096 byte (4KB) boundary.

Remarks

This determines the amount of file data that can be read ahead of time with asynchronous file reading. The default setting is 65536 bytes (64KB). Changes only affect streams that are created afterwards, not any that already exist. So it is possible to have streams with differing buffer lengths by using this config option before creating each of them.

When asynchronous file reading is enabled, the buffer level is available from BASS_StreamGetFilePosition.

See also

BASS_GetConfig, BASS_SetConfig, BASS_StreamCreateFile, BASS_StreamGetFilePosition