Sound::DecrementCategory
function · sound · primitive
- Address
0x7a6760· 45 bytes, up to0x7a678c- Meaning
- Uncounts a sound from its bus, not below 0
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- sound/engine#bus-caps-and-duplicates
Finding: Bus caps and duplicates in sound: the engine
Every open names one of 13 buses. A bus at its cap refuses the open, as does a bus of 13 or more; nothing is evicted. The caps are 2³¹−1, 1, 2, 2, 1, 1, 2, 2, 1, 6, 4, 1, 2 for buses 0 to 12. With flag 0x1 the open also fails while a sound of the same file name hash is live and not fading, or is cut off. A sound counts on its bus once its channel starts and stops counting when the channel stops.
The derivation is in the doc.
Callers 2
- Sound::Suspend sound
- Sound::Stop3 sound
Callees 1
- SInterlockedDecrement storm
Calls and jumps by a bare address, from tables/calls.tsv.