BASS_CONFIG_NET_PREBUF config option


Amount to pre-buffer before playing 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 before starting playback. The default is 75%. This setting is just a minimum; BASS will always pre-download a certain amount to detect the stream's format and initialize the decoder.

The pre-buffering can be done by BASS_StreamCreateURL or asynchronously, depending on the BASS_CONFIG_NET_PREBUF_WAIT setting.

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, BASS_CONFIG_NET_PREBUF_WAIT