mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-04 21:00:58 +00:00
Add reverse engineered sound code
This commit is contained in:
parent
67f370f17c
commit
6f0163af45
5 changed files with 802 additions and 128 deletions
|
@ -1861,7 +1861,7 @@ int app_main(int argc, char const* const* argv)
|
||||||
SetupInput();
|
SetupInput();
|
||||||
InitView();
|
InitView();
|
||||||
myloadconfig();
|
myloadconfig();
|
||||||
LoadStaticSounds();
|
LoadFX();
|
||||||
setCDaudiovolume(gMusicVolume);
|
setCDaudiovolume(gMusicVolume);
|
||||||
seq_LoadSequences();
|
seq_LoadSequences();
|
||||||
InitStatus();
|
InitStatus();
|
||||||
|
|
|
@ -176,6 +176,8 @@ extern short bSlipMode;
|
||||||
extern short nItemTextIndex;
|
extern short nItemTextIndex;
|
||||||
extern const char *gString[];
|
extern const char *gString[];
|
||||||
|
|
||||||
|
extern short bNoSound;
|
||||||
|
|
||||||
extern char g_modDir[BMAX_PATH];
|
extern char g_modDir[BMAX_PATH];
|
||||||
enum {
|
enum {
|
||||||
kPalNormal = 0,
|
kPalNormal = 0,
|
||||||
|
|
|
@ -111,6 +111,7 @@ extern int laststatusx;
|
||||||
extern int laststatusy;
|
extern int laststatusy;
|
||||||
|
|
||||||
void seq_LoadSequences();
|
void seq_LoadSequences();
|
||||||
|
int seq_GetFrameSound(int val, int edx);
|
||||||
void seq_MoveSequence(short nSprite, short nSeq, short bx);
|
void seq_MoveSequence(short nSprite, short nSeq, short bx);
|
||||||
int seq_GetSeqPicnum2(short nSeq, short nFrame);
|
int seq_GetSeqPicnum2(short nSeq, short nFrame);
|
||||||
int seq_GetSeqPicnum(short nSeq, short edx, short ebx);
|
int seq_GetSeqPicnum(short nSeq, short edx, short ebx);
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
#define kMaxSoundFiles 80
|
#define kMaxSoundFiles 80
|
||||||
#define kMaxSounds 200
|
#define kMaxSounds 200
|
||||||
|
#define kMaxSoundNameLen 8
|
||||||
|
#define kMaxActiveSounds 8
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
kSound0 = 0,
|
kSound0 = 0,
|
||||||
|
@ -88,25 +90,26 @@ extern short nCreepyTimer;
|
||||||
extern short StaticSound[];
|
extern short StaticSound[];
|
||||||
|
|
||||||
|
|
||||||
int UpdateSounds();
|
void UpdateSounds();
|
||||||
|
|
||||||
void InitFX();
|
void InitFX();
|
||||||
void UnInitFX();
|
void UnInitFX();
|
||||||
void FadeSong();
|
void FadeSong();
|
||||||
int LocalSoundPlaying();
|
int LocalSoundPlaying();
|
||||||
int sound_load_file(char *fileName);
|
void LoadFX();
|
||||||
void LoadStaticSounds();
|
|
||||||
void StopAllSounds();
|
void StopAllSounds();
|
||||||
void SetLocalChan(int nChannel);
|
void SetLocalChan(int nChannel);
|
||||||
int GetLocalSound();
|
int GetLocalSound();
|
||||||
void UpdateLocalSound();
|
void UpdateLocalSound();
|
||||||
void StopLocalSound();
|
void StopLocalSound();
|
||||||
void PlayLocalSound(short nSound, int val);
|
void PlayLocalSound(short nSound, short val);
|
||||||
|
|
||||||
void BendAmbientSound();
|
void BendAmbientSound();
|
||||||
void CheckAmbience(short nSector);
|
void CheckAmbience(short nSector);
|
||||||
|
|
||||||
void D3PlayFX(int nSound, int nVal);
|
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 StopSpriteSound(short nSprite);
|
||||||
|
|
||||||
void StartSwirlies();
|
void StartSwirlies();
|
||||||
|
|
Loading…
Reference in a new issue