DAC2_SetTime


Sets the time remaining/elapsed on the DAC-2.

BOOL WINAPI DAC2_SetTime(
    int nDeckID,

    int nMinutes,

    int nSeconds,

    int nHundredths
);

Parameters

nDeckID

The ID that specifies either DeckA – 0 or DeckB - 1.

nMinutes

 

 

The number to display for the minutes.

–1 sets them to blank

–2 sets them to – –

nSeconds

 

 

 The number to display for the seconds.

–1 sets them to blank

–2 sets them to – –

nHundredths

 

 The number to display for the hundredths of second left.

–1 sets them to blank

–2 sets them to – –

 

 

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

Error codes

DAC2_ERROR_INIT

 The DAC-2 has not been initialized.

Remarks
You can use this to display the elapsed or remaining time in the current track.

Example
Set the time to 03:24:43.

//Set time to 03:24:43 for DeckA

DAC2_SetColons(0, TRUE);

DAC2_SetTime(0, 3,24,43);

//Set time to 03:24:43 for DeckB

DAC2_SetColons(1, TRUE);

DAC2_SetTime(1, 3,24,43);

See also
 DAC2_Init