benilla-re systems structs docs

SoundCheckFmodCall

function · sound · host

Address
0x7a48a0 · 54 bytes, up to 0x7a48d5
Meaning
Returns 0 for a call that succeeded, else logs it and returns FMOD's error
Confidence
verified, proof one
Finding
sound/engine#fmod-set-up-sequence

Finding: FMOD set-up sequence in sound: the engine

In order the client calls SetOutput, SetDriver, GetDriverCaps (bit 0 clear sets the maximum hardware channels to 0), SetMixer, SetBufferSize when non-zero, SetHWND with the window, SetMin/SetMaxHardwareChannels when not −1, SetMemorySystem(NULL, 0, alloc, realloc, free) with Storm wrappers tagged "FMod", the file cache with the memory cache size, File_SetCallbacks with the file cache's open, close, read, seek and tell, and Init(rate, channels, flags). A failing call logs Error: %s(%i) returned %i and returns FMOD's error code. On success it keeps the rate, logs the output, driver, mixer and channel counts, registers the frame handler and the focus handler, zeroes the 13 bus counters and sets the three 3D factors.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.