Sound::Suspend
function · sound · host
- Address
0x7a5880· 123 bytes, up to0x7a58fa- Meaning
- Stops a sound's channel and stream, keeps its flags and takes it off the moving lists
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 2
- Sound::ProcessFadeList sound
- Sound::ProcessCutoffList sound
Callees 9
- Sound::RemoveFromUpdateList sound
- Sound::RemoveFromPanningList sound
- Sound::SetPauseReason sound
- Sound::IsSuspended sound
- Sound::DecrementCategory sound
- _FSOUND_Stream_SetEndCallback@12 unassigned
- _FSOUND_Stream_Stop@4 unassigned
- _FSOUND_StopSound@4 unassigned
- _FSOUND_IsPlaying@4 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.