Table of Contents


SFX_OBJ

Definition

struct SFX_OBJ
{
    sample_handle _p_sfx;
    int _i_channel;
    int _i_volume;
    int _i_pan;
    int _i_priority;
    int _i_length;
    bool _b_reserved;
    bool _b_muted;
    bool _b_playing;
    bool _b_paused;
};

Properties

_p_sfx handle to the sound effect
_i_channel channel # the sfx is currently playing on (or has reserved)
_i_volume the volume level of the sfx
_i_pan the pan setting of the sfx
_i_priority the sfx priority in getting bumped when channels are full
_i_length holds the length of the clip
_b_reserved whether or not the clip is on a reserved channel
_b_muted whether or not the clip is muted
_b_playing whether or not the clip is playing
_b_paused whether or not the clip is paused