Minor cleanup and warning removal

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@699 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2003-02-06 16:46:57 +00:00
parent 85a2c795ac
commit 64b6d08cab
2 changed files with 8 additions and 1 deletions
@@ -288,6 +288,7 @@ NoSound_PlaybackTaskFunc (void *data)
SDL_Delay (delay);
}
HFree (stream);
FinishTask (task);
return 0;
}
@@ -105,6 +105,8 @@ TFB_alInitSound (int driver, int flags)
StreamDecoderTask = AssignTask (StreamDecoderTaskFunc, 1024,
"audio stream decoder");
(void) driver; // eat compiler warning
return 0;
}
@@ -113,7 +115,11 @@ TFB_alUninitSound (void)
{
int i;
ConcludeTask (StreamDecoderTask);
if (StreamDecoderTask)
{
ConcludeTask (StreamDecoderTask);
StreamDecoderTask = NULL;
}
for (i = 0; i < NUM_SOUNDSOURCES; ++i)
{