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

Function FreeMusic

code/client/snd_dma.cpp:4061–4070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4059}
4060
4061static void FreeMusic( MusicInfo_t *pMusicInfo )
4062{
4063 if (pMusicInfo->pLoadedData)
4064 {
4065 Z_Free(pMusicInfo->pLoadedData);
4066 pMusicInfo->pLoadedData = NULL; // these two MUST be kept as valid/invalid together
4067 pMusicInfo->sLoadedDataName[0]= '\0'; //
4068 pMusicInfo->iLoadedDataLen = 0;
4069 }
4070}
4071
4072// called only by snd_shutdown (from snd_restart or app exit)
4073//

Callers 3

S_UnCacheDynamicMusicFunction · 0.70
S_StartBackgroundTrackFunction · 0.70

Calls 1

Z_FreeFunction · 0.50

Tested by

no test coverage detected