MCPcopy Create free account
hub / github.com/JACoders/OpenJK / UnloadEALFile

Function UnloadEALFile

code/client/snd_dma.cpp:5746–5763  ·  view source on GitHub ↗

Unload current .eal file */

Source from the content-addressed store, hash-verified

5744 Unload current .eal file
5745*/
5746static void UnloadEALFile()
5747{
5748 HRESULT hr;
5749
5750 if ((!s_lpEAXManager) || (!s_bEAX))
5751 return;
5752
5753 hr = s_lpEAXManager->FreeDataSet(0);
5754 s_bEALFileLoaded = false;
5755
5756 if (s_lpEnvTable)
5757 {
5758 Z_Free(s_lpEnvTable);
5759 s_lpEnvTable = NULL;
5760 }
5761
5762 return;
5763}
5764#endif
5765
5766#ifdef USE_OPENAL

Callers 2

EALFileInitFunction · 0.70
ReleaseEAXManagerFunction · 0.70

Calls 1

Z_FreeFunction · 0.50

Tested by

no test coverage detected