diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-12-06 00:22:46 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | 9f006f18fe497c1ef12cd2973045fadbd500aaac (patch) | |
| tree | fab2f2562efbcfa83188797a966b32bd5810d7cc /src/openal.c | |
| parent | 4508748944c293618d775e346c998f025cf6d1cd (diff) | |
Many warnings cleaned up (Tim Beckmann)
Menus.
Diffstat (limited to 'src/openal.c')
| -rw-r--r-- | src/openal.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/openal.c b/src/openal.c index ee40968..97ca8e2 100644 --- a/src/openal.c +++ b/src/openal.c @@ -381,10 +381,12 @@ int PlatPlaySound(int activeIndex) alSourcei (ActiveSounds[activeIndex].ds3DBufferP, AL_BUFFER, GameSounds[si].dsBufferP); +#if 1 /* PLEASE REMOVE IFDEF! */ if (ActiveSounds[activeIndex].loop) alSourcei (ActiveSounds[activeIndex].ds3DBufferP, AL_LOOPING, AL_TRUE); else alSourcei (ActiveSounds[activeIndex].ds3DBufferP, AL_LOOPING, AL_FALSE); +#endif if (1 || ActiveSounds[activeIndex].pitch != GameSounds[si].pitch) { PlatChangeSoundPitch(activeIndex, ActiveSounds[activeIndex].pitch); @@ -539,12 +541,12 @@ int PlatDo3dSound(int activeIndex) if (ActiveSounds[activeIndex].paused) { if (distance < (ActiveSounds[activeIndex].threedeedata.outer_range + SOUND_DEACTIVATERANGE)) { PlatStopSound (activeIndex); - +#if 1 /* PLEASE REMOVE IFDEF! */ if (ActiveSounds[activeIndex].loop) alSourcei (ActiveSounds[activeIndex].ds3DBufferP, AL_LOOPING, AL_TRUE); else alSourcei (ActiveSounds[activeIndex].ds3DBufferP, AL_LOOPING, AL_FALSE); - +#endif alSourcePlay (ActiveSounds[activeIndex].ds3DBufferP); newVolume = 0; ActiveSounds[activeIndex].paused = 0; @@ -697,8 +699,9 @@ void PlatEndGameSound(SOUNDINDEX index) unsigned int PlatMaxHWSounds() { +/* printf("PlatMaxHWSounds()\n"); - +*/ return 32; } |
