SetLuaMusic
function · sound · primitive
- Address
0x460450· 201 bytes, up to0x460518- Meaning
- Fades the Lua and server tracks and opens a named file as the Lua music loop
- Confidence
- verified, proof one
- Finding
- sound/music#lua-music
Finding: Lua music in sound: music
PlayMusic(name) and StopMusic() both run 0x460450(name). It fades the server track over 3.0 s
and the Lua track over 4.0 s, empties both slots, and schedules the zone music 6 s later. With a
name it opens the file as an endless loop on bus 0 with flag 0x2 at volume 1.0; if that works it
fades the zone track over 4.0 s and starts the loop unless music is paused. A file that does not
open leaves the zone track playing. While the Lua slot holds a sound the zone pump does nothing.
The derivation is in the doc.
Callers 2
- Script::PlayMusic sound
- Script::StopMusic sound
Callees 6
- OsGetAsyncTimeMs core
- Sound::Play2DLooped sound
- Sound::Stop sound
- Sound::Stop2 sound
- Sound::SetPaused sound
- Sound::SetVolume2 sound
Calls and jumps by a bare address, from tables/calls.tsv.