BASS_CONFIG_NET_RESTRATE config option

The restricted download rate for internet file streams.

BASS_SetConfig(
    BASS_CONFIG_NET_RESTRATE,
    DWORD rate
);

Parameters

rateThe download rate in bytes per second.

Remarks

This setting determines the maximum download speed for an internet file stream with rate restriction enabled via the BASS_STREAM_RESTRATE flag. The rate restriction only comes into effect while a stream's buffered data exceeds its BASS_CONFIG_NET_BUFFER setting, and a download will otherwise be as fast as the connection allows. Note that a too low setting may result in a server closing (timing-out) the connection before the download is complete.

The default setting is 20000. Changes only affect streams that are created afterwards, not any that already exist.

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