Script::PlaySoundFile
function · sound · orchestration
- Address
0x458780· 107 bytes, up to0x4587ea- Signature
int __fastcall (lua_State *L)- Meaning
- Plays a file once on bus 3 at volume 1.0 and returns 1 or nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- sound/interface#lua-sound-functions
Finding: Lua sound functions in sound: the interface
PlaySound(name), PlayMusic(name), PlaySoundFile(file) and StopMusic() are registered for the
glue and the game UI. PlaySound plays an interface sound by name. PlayMusic and StopMusic are
the Lua music slot (music#lua-music). PlaySoundFile opens the file on bus 3 (cap 2) with no
duplicate check and no definition, started at once at volume 1.0 on the Sound category, and
returns 1 or nil. A non-string, non-number argument raises the usage error.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- lua_isstring lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushfstring lua
- lua_error lua
- Sound::Play2D sound
Calls and jumps by a bare address, from tables/calls.tsv.