Sound::Initialize
function · sound · host
- Address
0x7a4330· 1202 bytes, up to0x7a47e1- Meaning
- Opens the log, checks the FMOD version, reads the parameters and sets FMOD up
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- sound/engine#device-initialization
Finding: Device initialization in sound: the engine
Sound::Initialize(getInt, getFloat, getString) opens Logs\Sound.log, refuses a second call,
requires FSOUND_GetVersion to equal 3.75 (else returns 13), and reads its parameters through
the getters with these defaults. A value out of range returns 14 before FMOD is set up.
| parameter | default | range |
|---|---|---|
| SoundOutputSystem | −1 | −1 to 13 |
| SoundDriver | −1 → 0 | −1 to drivers − 1 |
| SoundMixer | −1 → 4 | −1 to 9 |
| SoundBufferSize | 0 (not set) | ≥ 0 |
| SoundMin / MaxHardwareChannels | −1 (not set) / 12 | ≥ −1 |
| SoundMixRate, SoundSoftwareChannels | 44100, 12 | |
| SoundInitFlags | 0x80, then `& ~0x200 | 2` |
| SoundDistance / Doppler / RolloffFactor | 1.0, 1.0, 4.0 | |
| SoundMemoryCache | 1 |
The derivation is in the doc.
Callers 1
- SndInterfaceInitialize sound
Callees 33
- EventRegister core
- OsCreateDirectory os
- 0x589c90 gx
- SLogCreate storm
- SLogFlush storm
- SLogWrite storm
- SoundCheckFmodCall sound
- ReadSoundParams sound
- 0x7a8fb0 os
- _FSOUND_3D_SetRolloffFactor@4 unassigned
- _FSOUND_3D_SetDopplerFactor@4 unassigned
- _FSOUND_3D_SetDistanceFactor@4 unassigned
- _FSOUND_GetOutputRate@0 unassigned
- _FSOUND_GetNumHWChannels@12 unassigned
- _FSOUND_GetMaxChannels@0 unassigned
- _FSOUND_GetMixer@0 unassigned
- _FSOUND_GetDriverName@4 unassigned
- _FSOUND_GetDriver@0 unassigned
- _FSOUND_GetOutput@0 unassigned
- _FSOUND_Init@12 unassigned
- _FSOUND_File_SetCallbacks@20 unassigned
- _FSOUND_GetError@0 unassigned
- _FSOUND_SetMemorySystem@20 unassigned
- _FSOUND_SetMaxHardwareChannels@4 unassigned
- _FSOUND_SetMinHardwareChannels@4 unassigned
- _FSOUND_SetHWND@4 unassigned
- _FSOUND_SetBufferSize@4 unassigned
- _FSOUND_SetMixer@4 unassigned
- _FSOUND_GetDriverCaps@8 unassigned
- _FSOUND_SetDriver@4 unassigned
- _FSOUND_GetNumDrivers@0 unassigned
- _FSOUND_SetOutput@4 unassigned
- _FSOUND_GetVersion@0 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.