Firelight Technologies FMOD Studio API
ChannelControl::getDSPClock
Retrieves the DSP clock values which count up by the number of samples per second in the software mixer, i.e. if the default sample rate is 48KHz, the DSP clock increments by 48000 per second.
C++ Syntax
FMOD_RESULT ChannelControl::getDSPClock(
unsigned long long *dspclock,
unsigned long long *parentclock
);
Parameters
dspclock
Address of a variable to receive the DSP clock value for the head DSP node.
parentclock
Address of a variable to receive the DSP clock value for the tail DSP node.
Return Values
If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.
Remarks
Use result with ChannelControl::setDelay to play a sound on an exact tick in the future, or stop it in the future.
Note that when delaying a channel or channel group you want to sync it to the parent channel group DSP clock value, not its own DSP clock value.
See Also
Version 1.10.03 Built on Feb 1, 2018