Skip to content

Commit

Permalink
Fix sound flags
Browse files Browse the repository at this point in the history
  • Loading branch information
KitRifty committed Aug 29, 2023
1 parent 46e3de8 commit 928647a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions plugins/include/sdktools_sound.inc
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,18 @@ enum
*/
enum
{
SND_NOFLAGS= 0, /**< Nothing */
SND_CHANGEVOL = 1, /**< Change sound volume */
SND_CHANGEPITCH = 2, /**< Change sound pitch */
SND_STOP = 3, /**< Stop the sound */
SND_SPAWNING = 4, /**< Used in some cases for ambients */
SND_DELAY = 5, /**< Sound has an initial delay */
SND_STOPLOOPING = 6, /**< Stop looping all sounds on the entity */
SND_SPEAKER = 7, /**< Being played by a mic through a speaker */
SND_SHOULDPAUSE = 8 /**< Pause if game is paused */
SND_NOFLAGS = 0, /** Nothing */
SND_CHANGEVOL = 1, /** Change sound volume */
SND_CHANGEPITCH = 2, /** Change sound pitch */
SND_STOP = 4, /** Stop the sound */
SND_SPAWNING = 8, /** Used in some cases for ambients */
SND_DELAY = 16, /** Sound has an initial delay */
SND_STOPLOOPING = 32, /** Stop looping all sounds on the entity */
SND_SPEAKER = 64, /** Being played by a mic through a speaker */
SND_SHOULDPAUSE = 128, /** Pause if game is paused */
SND_IGNORE_PHONEMES = 256, /** Prevents flex animation from being driven by this sound */
SND_IGNORE_NAME = 512, /** Changes all sounds emitted on the entity, regardless of actual name */
SND_DO_NOT_OVERWRITE_EXISTING_ON_CHANNEL = 1024 /** If an existing sound is found on the channel, the sound will not play instead of overwriting it */
};

/**
Expand Down

0 comments on commit 928647a

Please sign in to comment.