BASS_CONFIG_NET_PREBUF_WAIT config option


Wait for pre-buffering when opening internet streams?

BASS_SetConfig(
    BASS_CONFIG_NET_PREBUF_WAIT,
    BOOL wait
);

Parameters

waitWait for pre-buffering... FALSE = no, TRUE = yes.

Remarks

This setting determines whether BASS_StreamCreateURL will wait for an amount of data to be downloaded before returning the new stream's handle. The amount is determined by the BASS_CONFIG_NET_BUFFER and BASS_CONFIG_NET_PREBUF settings. The default setting is enabled. When it is disabled, pre-buffering will happen asynchronously and playback will begin in a stalled state while pre-buffering is in progress. The progress can be monitored with BASS_StreamGetFilePosition (BASS_FILEPOS_BUFFERING).

As well as internet streams, this config setting also applies to streams created with BASS_StreamCreateFileUser and the STREAMFILE_BUFFER file system. BASS_StreamCreateFileUser will never pre-buffer when using the STREAMFILE_BUFFERPUSH system.

See also

BASS_GetConfig, BASS_SetConfig, BASS_StreamCreateURL, BASS_CONFIG_NET_BUFFER, BASS_CONFIG_NET_PREBUF