MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / deinit

Method deinit

src/server/gui/core/Sound.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void Sound::deinit()
96{
97 playing = false;
98
99 if(mSampleData != NULL)
100 {
101 SDL_LockAudio();
102 delete[] mSampleData;
103 mSampleData = NULL;
104 mSampleLength = 0;
105 mSamplePos = 0;
106 SDL_UnlockAudio();
107 }
108}
109
110void Sound::play()
111{

Callers 2

stopMethod · 0.45
getTimeoutMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected