X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FSound.c;h=1284e58c30988017e6e0a98e72ee4867d5bd301b;hb=949580a3bafe5c8abd1fac99202411b65900b883;hp=4bb5208421fe95494498a046ecaf5206f2bf2afe;hpb=ac592f78bbedc4808c5e35fb22bc8fc9f0398c8d;p=rocksndiamonds.git diff --git a/src/game_sp/Sound.c b/src/game_sp/Sound.c index 4bb52084..1284e58c 100644 --- a/src/game_sp/Sound.c +++ b/src/game_sp/Sound.c @@ -11,6 +11,8 @@ int MusicOnFlag; int FXOnFlag; +#if 0 + DirectSoundBuffer ZonkFX[1 + 1]; DirectSoundBuffer InfotronFX[1 + 1]; DirectSoundBuffer BugFX[1 + 1]; @@ -19,6 +21,8 @@ DirectSoundBuffer PushFX; DirectSoundBuffer ExitFX; DirectSoundBuffer BaseFX; +#endif + void LoadSoundFX() { @@ -56,6 +60,8 @@ void LoadSoundFX() void subSoundFXZonk() { +#if 0 + int i; if (FXOnFlag == 0) @@ -72,10 +78,14 @@ void subSoundFXZonk() } } } + +#endif } void subSoundFXBug() { +#if 0 + int i; if (FXOnFlag == 0) @@ -92,10 +102,14 @@ void subSoundFXBug() } } } + +#endif } void subSoundFXInfotron() { +#if 0 + int i; if (FXOnFlag == 0) @@ -112,10 +126,14 @@ void subSoundFXInfotron() } } } + +#endif } void subSoundFXExplosion() { +#if 0 + int i; if (FXOnFlag == 0) @@ -132,10 +150,14 @@ void subSoundFXExplosion() } } } + +#endif } void subSoundFXBase() { +#if 0 + if (FXOnFlag == 0) return; @@ -146,10 +168,14 @@ void subSoundFXBase() { BaseFX.Play DSBPLAY_DEFAULT; } + +#endif } void subSoundFXPush() { +#if 0 + if (FXOnFlag == 0) return; @@ -160,10 +186,14 @@ void subSoundFXPush() { PushFX.Play DSBPLAY_DEFAULT; } + +#endif } void subSoundFXExit() { +#if 0 + if (FXOnFlag == 0) return; @@ -174,6 +204,16 @@ void subSoundFXExit() { ExitFX.Play DSBPLAY_DEFAULT; } + +#endif +} + +void subSoundFX(int si, int element, int action) +{ + int x = GetX(si); + int y = GetY(si); + + PlayLevelSound_SP(x, y, element, action); } void subMusicInit()