SoundFileCacheOpen
function · os · host
- Address
0x7a8770· 825 bytes, up to0x7a8aa8- Signature
uint32_t __stdcall (const char *name)- Meaning
- Opens a sound file into the cache entry its name hash finds, or an idle one, and returns the entry and slot
- Confidence
- verified, proof one
- Finding
- sound/overview#the-file-cache-open
Finding: The file cache open in sound: overview
SoundFileCacheOpen(name) (0x7a8770), FMOD's open, finds a 0x1a4-byte entry by the name's
SStrHashHT alone, never comparing the name; a null or empty name gets 0. A known entry with 16
handles refuses; an idle one leaves the idle list and, above 0x40000 bytes, reopens its file, while
a smaller one keeps the null file the close left. A new name is opened with
SFile::OpenEx(0, name, 1) and takes the idle list's head; with none it returns 0, leaving that
file open. The handle is
index << 8 | slot + 1, the slot the entry's first free of 16. The close 0x7a8f00 frees the slot
and at the last closes the file and makes the entry the idle list's tail.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 13
- SFile::OpenEx storm
- SFile::GetFileSize storm
- SStrCopy storm
- SStrHashHT storm
- SErrSetLastError storm
- 0x7a9eb0 os
- 0x7aa440 unassigned
- 0x7aa820 unassigned
- 0x7aa890 unassigned
- 0x7ab220 unassigned
- 0x7ab3c0 unassigned
- 0x7ab5b0 unassigned
- 0x7ab650 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.