MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DSUninit

Function DSUninit

source/Windows/DXSoundBuffer.cpp:238–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void 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}

Callers 1

WinMainFunction · 0.85

Calls 1

SoundCore_StopTimerFunction · 0.85

Tested by

no test coverage detected