Sets a latency provider on a mixer.
BOOL BASS_Mixer_StreamSetLatency(
HSTREAM handle,
MIXERLATENCYPROC *proc,
void *user
);
| handle | The mixer handle. |
| proc | The latency providing callback function... NULL = none. |
| user | User instance data to pass to the callback function. |
| BASS_ERROR_HANDLE | handle is not a valid mixer handle. |
| BASS_ERROR_DECODE | The mixer is not a decoding channel (it is being played by BASS). |
| BASS_ERROR_NOTAVAIL | The mixer does not have the BASS_MIXER_POSEX flag set. |
The output latency also affects the timing of non-mixtime sync callbacks set via BASS_Mixer_ChannelSetSync.
The latency can also be set via the BASS_ATTRIB_MIXER_LATENCY attribute. If that attribute and this function are both used, this function has priority.