C4 Engine
C4 Engine API Documentation

Sound::SetVolumeVariationCompletionCallback

Defined in:  C4Sound.h
Installs a completion callback function that is invoked when a volume variation has completed.
Prototype

void SetVolumeVariationCompletionCallback(VariationCallback *callback, void *cookie = nullptr);

Parameters
callback The volume variation completion callback function. This parameter may be nullptr, in which case the sound has no volume variation completion callback function.
cookie The cookie that is passed to the volume variation completion callback function as its last parameter.
Description
The SetVolumeVariationCompletionCallback function installs a completion callback function that is invoked every time that a volume variation operation completes for the sound for which it is installed. The VariationCallback type is defined as follows.

typedef void VariationCallback(Sound *, void *);

When the function pointed to by the callback parameter is called, the pointer to the sound object and the value supplied in the cookie parameter are passed to it. By default, there is no volume variation completion callback function installed.
See Also

Sound::VaryVolume

Sound::VolumeVarying

Sound::SetFrequencyVariationCompletionCallback