BASS

BASS_CONFIG_NET_PREBUF config option


Amount to pre-buffer when opening internet streams.

BASS_SetConfig(
    BASS_CONFIG_NET_PREBUF,
    DWORD prebuf
);

Parameters

prebufAmount (percentage) to pre-buffer.

Remarks

This setting determines what percentage of the buffer length (BASS_CONFIG_NET_BUFFER) should be filled by BASS_StreamCreateURL. The default is 75%. Setting this lower (eg. 0) is useful if you want to display a "buffering progress" (using BASS_StreamGetFilePosition) when opening internet streams, but note that this setting is just a minimum; BASS will always pre-download a certain amount to verify the stream.

As well as internet streams, this config setting also applies to "buffered" user file streams created with BASS_StreamCreateFileUser.

See also

BASS_GetConfig, BASS_SetConfig, BASS_StreamCreateURL, BASS_CONFIG_NET_BUFFER