Clear menu sound interface
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2287 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -27,7 +27,6 @@ static BYTE num_sounds = 0;
|
|||||||
static SOUND sound_buf[MAX_SOUNDS];
|
static SOUND sound_buf[MAX_SOUNDS];
|
||||||
static ELEMENTPTR sound_posobj[MAX_SOUNDS];
|
static ELEMENTPTR sound_posobj[MAX_SOUNDS];
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
PlaySound (SOUND S, SoundPosition Pos, ELEMENTPTR PositionalObject,
|
PlaySound (SOUND S, SoundPosition Pos, ELEMENTPTR PositionalObject,
|
||||||
BYTE Priority)
|
BYTE Priority)
|
||||||
@@ -73,6 +72,14 @@ PlaySound (SOUND S, SoundPosition Pos, ELEMENTPTR PositionalObject,
|
|||||||
PlaySoundEffect (S, chan + MIN_FX_CHANNEL, Pos, PositionalObject, Priority);
|
PlaySoundEffect (S, chan + MIN_FX_CHANNEL, Pos, PositionalObject, Priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
PlayMenuSound (MENU_SOUND_EFFECT S)
|
||||||
|
{
|
||||||
|
PlaySoundEffect (SetAbsSoundIndex (MenuSounds, S),
|
||||||
|
0, NotPositional (), NULL,
|
||||||
|
GAME_SOUND_PRIORITY);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ProcessSound (SOUND Sound, ELEMENTPTR PositionalObject)
|
ProcessSound (SOUND Sound, ELEMENTPTR PositionalObject)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,6 +33,14 @@ typedef enum
|
|||||||
TARGET_DAMAGED_FOR_6_PLUS_PT
|
TARGET_DAMAGED_FOR_6_PLUS_PT
|
||||||
} SOUND_EFFECTS;
|
} SOUND_EFFECTS;
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
MENU_SOUND_MOVE = 0,
|
||||||
|
MENU_SOUND_SUCCESS,
|
||||||
|
MENU_SOUND_FAILURE,
|
||||||
|
MENU_SOUND_INVOKED,
|
||||||
|
} MENU_SOUND_EFFECT;
|
||||||
|
|
||||||
extern SOUND MenuSounds;
|
extern SOUND MenuSounds;
|
||||||
extern SOUND GameSounds;
|
extern SOUND GameSounds;
|
||||||
|
|
||||||
@@ -58,6 +66,7 @@ extern void GetMenuSounds (MENU_SOUND_FLAGS *sound_0,
|
|||||||
|
|
||||||
extern void PlaySound (SOUND S, SoundPosition Pos,
|
extern void PlaySound (SOUND S, SoundPosition Pos,
|
||||||
ELEMENTPTR PositionalObject, BYTE Priority);
|
ELEMENTPTR PositionalObject, BYTE Priority);
|
||||||
|
extern void PlayMenuSound (MENU_SOUND_EFFECT S);
|
||||||
extern void ProcessSound (SOUND Sound, ELEMENTPTR PositionalObject);
|
extern void ProcessSound (SOUND Sound, ELEMENTPTR PositionalObject);
|
||||||
extern SoundPosition CalcSoundPosition (ELEMENTPTR ElementPtr);
|
extern SoundPosition CalcSoundPosition (ELEMENTPTR ElementPtr);
|
||||||
extern SoundPosition NotPositional (void);
|
extern SoundPosition NotPositional (void);
|
||||||
|
|||||||
Reference in New Issue
Block a user