HGE::Effect_Play
Starts playing a sound effect.
HCHANNEL Effect_Play(
HEFFECT effect
);
Parameters
- effect
- Handle of a sound effect to be played.
Return value
Returns the audio channel handle through which the effect is playing.
Use this handle with audio channel control functions.
Remarks
Maximum four instances of a particular sample can be played at the same time.
If all four instances are already playing during a call to Effect_Play,
the instance with the lowest volume is restarted with default parameters.
Requirements
Header: hge.h
Import library: hge.lib
See also
Effect_Load,
Effect_Free,
Effect_PlayEx
|