MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / deinit

Method deinit

src/Sound.cpp:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void Sound::deinit()
66{
67 playing = false;
68
69 if(mSampleData != NULL)
70 {
71 SDL_LockAudio();
72 delete[] mSampleData;
73 mSampleData = NULL;
74 mSampleLength = 0;
75 mSamplePos = 0;
76 SDL_UnlockAudio();
77 }
78}
79
80void Sound::play()
81{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected