MCPcopy Create free account
hub / github.com/ddnet/ddnet / Clear

Method Clear

src/game/client/components/mapsounds.cpp:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void CMapSounds::Clear()
224{
225 // unload all samples
226 m_vSourceQueue.clear();
227 for(int i = 0; i < m_Count; i++)
228 {
229 Sound()->UnloadSample(m_aSounds[i]);
230 m_aSounds[i] = -1;
231 }
232 m_Count = 0;
233}
234
235void CMapSounds::OnStateChange(int NewState, int OldState)
236{

Callers

nothing calls this directly

Calls 2

UnloadSampleMethod · 0.80
SoundFunction · 0.50

Tested by

no test coverage detected