Firelight Technologies FMOD Studio API
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.
FMOD_RESULT ChannelControl::getDSPClock(
unsigned long long *dspclock,
unsigned long long *parentclock
);
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.
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.
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.
Version 1.03.06 Built on Apr 17, 2014