The download callback function on an internet stream.
BASS_ChannelSetAttributeEx( DWORD handle, BASS_ATTRIB_DOWNLOADPROC, void *info, DWORD size );
handle | The channel handle. |
info | A pointer to a DOWNLOADPROC callback function and user parameter. The user parameter is optional; if it is not included then the existing value will be kept. |
size | The size of the info. This should be the size of one or two pointers, depending on whether a user parameter is included. |
This attribute can be set at any time, including within a DOWNLOADPROC function.
void *info[2] = { (void*)DownloadProc, user }; BASS_ChannelSetAttributeEx(stream, BASS_ATTRIB_DOWNLOADPROC, info, sizeof(info));
Disable download callbacks on a stream.
void *proc = NULL; BASS_ChannelSetAttributeEx(stream, BASS_ATTRIB_DOWNLOADPROC, &proc, sizeof(proc));