MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / shutdown

Function shutdown

src/Audio/src/AudioEngine.cpp:203–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 }
202
203 void shutdown()
204 {
205 for (auto& sourceId : _alSources)
206 {
207 alSourceStop(sourceId);
208 alSourcei(sourceId, AL_BUFFER, 0);
209 }
210 _instances.clear();
211
212 alDeleteSources(static_cast<ALsizei>(_alSources.size()), _alSources.data());
213 _alSources.clear();
214 alDeleteBuffers(static_cast<ALsizei>(_alBuffers.size()), _alBuffers.data());
215 _alBuffers.clear();
216 closeDevice();
217 _isInitialised = false;
218 }
219
220 // Buffer management
221

Callers

nothing calls this directly

Calls 4

closeDeviceFunction · 0.85
clearMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected