BASS_CONFIG_ENCODE_QUEUE config option
The maximum queue length.
|limit||The limit, in milliseconds... 0 = unlimited.
When the queue's length is unlimited, its buffer will grow as needed to hold the queued data, otherwise the buffer will be preallocated according to the limit during encoder initialization. If the limit is exceeded or the buffer cannot grow due to lack of memory then data will be dropped. BASS_Encode_SetNotify can be used to get notification of when that happens, and BASS_Encode_GetCount used to check how much data has been dropped.
The default limit is 6 seconds (6000 milliseconds). Changes only apply to new encoders, not any already existing encoders.
BASS_Encode_GetCount, BASS_Encode_SetNotify, BASS_Encode_Start