MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / stopAllSounds

Function stopAllSounds

TheForceEngine/TFE_Audio/audioSystem.cpp:151–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 void stopAllSounds()
152 {
153 if (s_nullDevice) { return; }
154
155 SDL_LockMutex(s_mutex);
156 s_sourceCount = 0u;
157 memset(s_sources, 0, sizeof(SoundSource) * MAX_SOUND_SOURCES);
158 for (s32 i = 0; i < MAX_SOUND_SOURCES; i++)
159 {
160 s_sources[i].slot = i;
161 }
162 SDL_UnlockMutex(s_mutex);
163 }
164
165 void selectDevice(s32 id)
166 {

Callers 1

shutdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected