Mercurial > almixer_isolated
comparison ALmixer.c @ 30:a554e41eeb13
Bug fix to move g_inInterruption cleanup outside of #ifdef THREADS block.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Mon, 28 Mar 2011 18:28:14 -0700 |
parents | 1c23805d5ce9 |
children | ad4eb4330fb0 |
comparison
equal
deleted
inserted
replaced
29:1c23805d5ce9 | 30:a554e41eeb13 |
---|---|
7486 g_StreamThreadEnabled = 0; | 7486 g_StreamThreadEnabled = 0; |
7487 SDL_UnlockMutex(s_simpleLock); | 7487 SDL_UnlockMutex(s_simpleLock); |
7488 /* This is safe to call with NULL thread, so we don't need to do anything special for interruptions. */ | 7488 /* This is safe to call with NULL thread, so we don't need to do anything special for interruptions. */ |
7489 SDL_WaitThread(Stream_Thread_global, NULL); | 7489 SDL_WaitThread(Stream_Thread_global, NULL); |
7490 Stream_Thread_global = NULL; | 7490 Stream_Thread_global = NULL; |
7491 | |
7492 SDL_DestroyMutex(s_simpleLock); | |
7493 #endif | |
7491 g_inInterruption = 0; | 7494 g_inInterruption = 0; |
7492 | |
7493 SDL_DestroyMutex(s_simpleLock); | |
7494 #endif | |
7495 | 7495 |
7496 /* Delete all the OpenAL sources */ | 7496 /* Delete all the OpenAL sources */ |
7497 for(i=0; i<Number_of_Channels_global; i++) | 7497 for(i=0; i<Number_of_Channels_global; i++) |
7498 { | 7498 { |
7499 alDeleteSources(1, &ALmixer_Channel_List[i].alsource); | 7499 alDeleteSources(1, &ALmixer_Channel_List[i].alsource); |