Skip to content

Commit

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

/**
Expand Down

0 comments on commit 85f5a04

Please sign in to comment.