diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-12-09 20:21:44 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | a2d3afb314a3b27a55f68e05f0d2c7d5dff015be (patch) | |
| tree | 2597aeb6b453a212526326ba2af6dec073371642 /src/openal.c | |
| parent | c69d42233364999afe5257e3ea536d6b3cd035c6 (diff) | |
Better error checking in winapi.c. (Tim Beckmann)
Keep track of profile timestamps. (Tim Beckmann)
Implemented a few other missing bits.
Diffstat (limited to 'src/openal.c')
| -rw-r--r-- | src/openal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openal.c b/src/openal.c index 5dfd931..e39ba66 100644 --- a/src/openal.c +++ b/src/openal.c @@ -449,7 +449,7 @@ void PlatStopSound(int activeIndex) /* printf("PlatStopSound(%d)\n", activeIndex); */ if (!SoundActivated) - return 0; + return; // if (ActiveSounds[activeIndex].paused) // alSourcePause (ActiveSounds[activeIndex].ds3DBufferP); @@ -656,7 +656,7 @@ void PlatUpdatePlayer() ALfloat vel[3], or[6], pos[3]; if (!SoundActivated) - return 0; + return; if (Global_VDB_Ptr) { extern int NormalFrameTime; @@ -710,7 +710,7 @@ void PlatEndGameSound(SOUNDINDEX index) int i; if (!SoundActivated) - return 0; + return; if((index<0)||(index>=SID_MAXIMUM)) return; /* no such sound */ @@ -780,7 +780,7 @@ void UpdateSoundFrequencies() /* printf("FREQ UpdateSoundFreqncies()\n"); */ if (!SoundActivated) - return 0; + return; if (!SoundSwitchedOn) /* TODO: maybe I should have used this var.. */ return; |
