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

Function stopAll

src/Audio/src/AudioEngine.cpp:504–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502 // Global control
503
504 void stopAll()
505 {
506 for (auto& inst : _instances)
507 {
508 if (inst.active)
509 {
510 alSourceStop(inst.sourceId);
511 alSourcei(inst.sourceId, AL_BUFFER, 0);
512 if (_reverbAvailable)
513 {
514 alSource3i(inst.sourceId, AL_AUXILIARY_SEND_FILTER, AL_EFFECTSLOT_NULL, 0, AL_FILTER_NULL);
515 }
516 inst.active = false;
517 }
518 }
519 }
520
521 void pauseAll()
522 {

Callers 2

returnToTitleFunction · 0.85
closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected