MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Sound_FreeSample

Function Sound_FreeSample

TombEngine/Sound/sound.cpp:736–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736void Sound_FreeSample(int index)
737{
738 if (BASS_SamplePointer[index] != NULL)
739 {
740 BASS_SampleFree(BASS_SamplePointer[index]);
741 BASS_SamplePointer[index] = NULL;
742 }
743}
744
745// Get first free (non-playing) sound slot.
746// If no free slots found, now try to hijack slot which is as far from listener as possible

Callers 2

LoadSampleFunction · 0.85
FreeSamplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected