MIXERLATENCYPROC callback

User defined output latency providing callback function.

DWORD CALLBACK MixerLatencyProc(
    HSTREAM mixer,
    void *user
);

Parameters

mixerThe mixer to provide the output latency of.
userThe user instance data given when BASS_Mixer_StreamSetLatency was called.

Return value

The output latency in bytes.

Remarks

This function tells the mixer how much of its output has not been heard yet.

Example

Get the latency when using BASSWASAPI output.
DWORD CALLBACK MyMixerLatencyProc(HSTREAM mixer, void *user)
{
    BASS_WASAPI_SetDevice(outdevice);
    return BASS_WASAPI_GetData(NULL, BASS_DATA_AVAILABLE);
}

See also

BASS_Mixer_StreamSetLatency