MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PauseSounds

Method PauseSounds

sndlib/sdlsound.cpp:557–564  ·  view source on GitHub ↗

Pause all sounds/resume all sounds

Source from the content-addressed store, hash-verified

555
556// Pause all sounds/resume all sounds
557void lnxsound::PauseSounds() {
558 for (auto &current_slot : sound_cache) {
559 sound_buffer_info *sb = &current_slot;
560 if (sb->m_status != SSF_UNUSED && !(sb->m_status & SSF_PAUSED)) {
561 sb->m_status |= SSF_PAUSED;
562 }
563 }
564}
565
566void lnxsound::ResumeSounds() {
567 for (auto &current_slot : sound_cache) {

Callers 3

StartLevelFunction · 0.45
PauseGameFunction · 0.45
ShutdownD3Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected