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:
@@ -288,6 +288,7 @@ NoSound_PlaybackTaskFunc (void *data)
|
|||||||
SDL_Delay (delay);
|
SDL_Delay (delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HFree (stream);
|
||||||
FinishTask (task);
|
FinishTask (task);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ TFB_alInitSound (int driver, int flags)
|
|||||||
StreamDecoderTask = AssignTask (StreamDecoderTaskFunc, 1024,
|
StreamDecoderTask = AssignTask (StreamDecoderTaskFunc, 1024,
|
||||||
"audio stream decoder");
|
"audio stream decoder");
|
||||||
|
|
||||||
|
(void) driver; // eat compiler warning
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,7 +115,11 @@ TFB_alUninitSound (void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
ConcludeTask (StreamDecoderTask);
|
if (StreamDecoderTask)
|
||||||
|
{
|
||||||
|
ConcludeTask (StreamDecoderTask);
|
||||||
|
StreamDecoderTask = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < NUM_SOUNDSOURCES; ++i)
|
for (i = 0; i < NUM_SOUNDSOURCES; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user