From a2d3afb314a3b27a55f68e05f0d2c7d5dff015be Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 9 Dec 2001 20:21:44 +0000 Subject: Better error checking in winapi.c. (Tim Beckmann) Keep track of profile timestamps. (Tim Beckmann) Implemented a few other missing bits. --- src/openal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/openal.c') 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; -- cgit v1.3