MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreeSound

Function FreeSound

sndlib/soundload.cpp:506–513  ·  view source on GitHub ↗

Frees sound index n

Source from the content-addressed store, hash-verified

504
505// Frees sound index n
506void FreeSound(int n) {
507 ASSERT(Sounds[n].used > 0);
508
509 Sounds[n].used = 0;
510 Sounds[n].name[0] = 0;
511 Sounds[n].flags = 0;
512 Num_sounds--;
513}
514
515// Gets next sound from n that has actually been alloced
516int GetNextSound(int n) {

Callers 2

OnDeleteSoundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected