benilla-re systems structs docs

Sound::SetPauseReason

function · sound · host

Address
0x7a65a0 · 184 bytes, up to 0x7a6657
Meaning
Sets or clears one pause reason and pauses, resumes or starts the channel on a change
Confidence
verified, proof one
Finding
sound/engine#pause-reasons

Finding: Pause reasons in sound: the engine

+0x88 holds four pause reasons: 0 held, 1 sound effects off, 2 suspended, 3 cut off. 0x7a65a0(reason, set) changes one; when the any-set state changes it pauses or resumes the channel with FSOUND_SetPaused, or, with no channel and nothing set, starts the stream with FSOUND_Stream_PlayEx(FSOUND_FREE, stream, NULL, TRUE), applies the stored state and unpauses. It returns whether reason 0 is clear, and 0 when a start fails. Sound::SetPaused(b) is reason 0. Sound::Suspend stops the channel and stream, keeps the flags in +0x3c, leaves the object and panning lists and sets reason 2; Sound::Resume restores them and clears it.

The derivation is in the doc.

Callers 6

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.