DAC2_EventCallbackSet


Sets the callback functions that the DAC2 will transmit all its events to.

BOOL WINAPI DAC2_EventCallbackSet(
    DAC2PROC *proca,
    DAC2PROC *procb,
    DWORD user
);

Parameters

proca

The user defined function to handle events from DeckA.

procb

The user defined function to handle events from DeckB.

user

User instance data to pass to the callback function.

Return value
If successful, TRUE is returned, else FALSE is returned. Use DAC2_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_INIT

DAC2_Init has not been successfully called.

BASS_ERROR_TIMER

Could not create timer.

Remarks
This function allows you to setup 2 callback functions. The first callback function receives all of the events transmitted from DeckA of the DAC-2. The second callback function receives all of the events transmitted from DeckB of the DAC-2.

See also
 DAC2PROC callback