diff options
author | Chris Robinson <[email protected]> | 2008-01-19 20:58:50 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-19 20:58:50 -0800 |
commit | e1cdbac5a0bcb113bfdf1fb86bbb7d725556845b (patch) | |
tree | 1b54c99866c0fc7bb6e60ae4276abe8ca2a7e97a /OpenAL32 | |
parent | 543eb9d217fcc4ed09b275fcaa8df11539bb3167 (diff) |
Close ALC first when exiting since devices might've been running when deleting stuff
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/OpenAL32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/OpenAL32.c b/OpenAL32/OpenAL32.c index f8db7125..71ebf0c0 100644 --- a/OpenAL32/OpenAL32.c +++ b/OpenAL32/OpenAL32.c @@ -42,10 +42,10 @@ BOOL APIENTRY DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved) break; case DLL_PROCESS_DETACH: + ReleaseALC(); ReleaseALBuffers(); ReleaseALEffects(); ReleaseALFilters(); - ReleaseALC(); FreeALConfig(); ALTHUNK_EXIT(); DeleteCriticalSection(&_alMutex); @@ -62,10 +62,10 @@ static void my_deinit() if(once) return; once = AL_TRUE; + ReleaseALC(); ReleaseALBuffers(); ReleaseALEffects(); ReleaseALFilters(); - ReleaseALC(); FreeALConfig(); ALTHUNK_EXIT(); DeleteCriticalSection(&_alMutex); |