raze-gles/source/exhumed/src/sound.h

126 lines
2.1 KiB
C
Raw Normal View History

#ifndef __sound_h__
#define __sound_h__
2019-09-18 16:11:06 +00:00
#define kMaxSoundFiles 80
#define kMaxSounds 200
#define kMaxSoundNameLen 8
#define kMaxActiveSounds 8
enum {
kSound0 = 0,
kSound1,
kSound2,
kSound3,
kSound4,
kSound5,
kSound6,
kSound7,
kSound8,
kSound9,
kSound10,
kSound11,
kSoundTorchOn,
kSound13,
kSound14,
kSound15,
kSound16,
kSound17,
kSound18,
kSound19,
kSound20,
kSound21,
kSound22,
kSound23,
kSound24,
kSound25,
kSound26,
kSound27,
kSound28,
kSound29,
kSound30,
kSound31,
kSound32,
kSound33,
kSound34,
kSound35,
kSound36,
kSound38 = 38,
kSound39,
kSound40,
kSound41,
kSound42 = 42,
kSound47 = 47,
kSound48 = 48,
kSoundQTail = 50,
kSound52 = 52,
kSoundTauntStart = 53,
kSoundJonFDie = 60,
kSound61,
kSound62,
kSound63,
kSound64,
kSound65,
kSound66,
kSound67,
kSound68,
kSound69,
kSound70,
kSound71,
kSound72,
kSoundAlarm,
kSound74,
kSound75,
kSound76,
kSound77,
kSound78,
kSound79,
};
extern short gMusicVolume;
extern short gFXVolume;
extern short nStopSound;
extern short nStoneSound;
extern short nSwitchSound;
extern short nLocalEyeSect;
extern short nElevSound;
extern short nCreepyTimer;
extern short StaticSound[];
2019-09-18 16:11:06 +00:00
void UpdateSounds();
void InitFX();
void UnInitFX();
void FadeSong();
int LocalSoundPlaying();
2019-09-18 16:11:06 +00:00
void LoadFX();
void StopAllSounds();
void SetLocalChan(int nChannel);
int GetLocalSound();
void UpdateLocalSound();
void StopLocalSound();
2019-09-18 16:11:06 +00:00
void PlayLocalSound(short nSound, short val);
2019-09-19 13:38:28 +00:00
int LoadSound(const char* sound);
void BendAmbientSound();
void CheckAmbience(short nSector);
2019-09-18 16:11:06 +00:00
short PlayFX2(unsigned short nSound, short nSprite);
short PlayFXAtXYZ(unsigned short ax, int x, int y, int z, int nSector);
short D3PlayFX(unsigned short nSound, short nVal);
void StopSpriteSound(short nSprite);
void StartSwirlies();
void UpdateSwirlies();
2019-09-21 15:47:55 +00:00
void PlayLogoSound(void);
void PlayTitleSound(void);
void PlayGameOverSound(void);
void SoundBigEntrance(void);
#endif