| 236 | } |
| 237 | |
| 238 | void DSUninit() |
| 239 | { |
| 240 | if (!g_bDSAvailable) |
| 241 | return; |
| 242 | |
| 243 | _ASSERT(g_uDSInitRefCount); |
| 244 | |
| 245 | if (g_uDSInitRefCount == 0) |
| 246 | return; |
| 247 | |
| 248 | g_uDSInitRefCount--; |
| 249 | |
| 250 | if (g_uDSInitRefCount) |
| 251 | return; |
| 252 | |
| 253 | // |
| 254 | |
| 255 | _ASSERT(g_uNumVoices == 0); |
| 256 | |
| 257 | SAFE_RELEASE(g_lpDS); |
| 258 | g_bDSAvailable = false; |
| 259 | |
| 260 | SoundCore_StopTimer(); |
| 261 | } |
no test coverage detected