BASS_CONFIG_NET_PREBUF_WAIT config option
Wait for pre-buffering when opening internet streams?
|wait||Wait for pre-buffering... FALSE = no, TRUE = yes.
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 disabled, which means 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.
BASS_GetConfig, BASS_SetConfig, BASS_StreamCreateURL, BASS_CONFIG_NET_BUFFER, BASS_CONFIG_NET_PREBUF