Sound::IsSuspended
function · sound · primitive
- Address
0x7a6720· 13 bytes, up to0x7a672c- Meaning
- Returns whether a sound's suspend reason is set
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- sound/engine#pause-reasons
- Test
sound::channel_set_volume,sound::channel_volume_mix,sound::source_3d_attrs,sound::volume_ramp_scale
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 7
- Sound::FadeIn sound
- Sound::IsPlaying sound
- Sound::Suspend sound
- Sound::Resume sound
- Sound::SetPosition sound
- Sound::SetVolume2 sound
- Sound::SetFrequency sound
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.