Sound::StartChannel
function · sound · host
- Address
0x7a6860· 180 bytes, up to0x7a6913- Meaning
- Applies a started channel's position, bus count, frequency and volume and restarts its fade clock
- 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 3
- Sound::Play sound
- Sound::PlayLooped sound
- Sound::SetPauseReason sound
Callees 7
- OsGetAsyncTimeMs core
- Sound::UpdateVolume sound
- Sound::SetPosition sound
- Sound::SetFrequency sound
- Sound::IncrementCategory sound
- _FSOUND_SetMute@8 unassigned
- _FSOUND_SetVolume@8 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.