Sound
CSoundManager, CSoundRes, BGM, CBinkPlayer, CMilesSound
| Address | Size | Name | Description |
|---|---|---|---|
| 0x00401080 | 16 | register_ail_shutdown_atexit | Registers Miles Sound System shutdown handler with atexit for audio cleanup at program termination. |
| 0x005FF0D0 | 429 | CMilesSound__InitSoundSystem | Initializes CMilesSound object with default audio parameters, volume levels, and calls CMilesSound__InitBuffers to setup audio subsystem. |
| 0x005FF280 | 269 | CSoundMgr__destructor | Destructs CSoundMgr instance, releasing 3D/2D audio samples, listeners, providers, digital driver via Miles Sound System (AIL). |
| 0x005FF390 | 290 | CSoundMgr__scalar_destructor | Destructor for CSoundMgr that releases 3D/2D audio samples, closes digital driver, and cleans up Miles Sound System resources. |
| 0x005FF5A0 | 265 | CSoundMgr__stop_all_streams | Stops all active audio streams by closing BGM and effect stream handles, clears associated string data. |
| 0x005FF6B0 | 726 | CMilesSound__InitBuffers | Initializes Miles Sound System audio buffers, configures sample rates/channels based on quality settings, and allocates digital driver handles. |
| 0x005FFBB0 | 308 | CSoundMgr__crossfade_bgm | Crossfades background music by pausing current stream, spawning fade thread, and starting queued BGM track with volume control. |
| 0x005FFCF0 | 455 | CSoundMgr__Shutdown | Releases 3D/2D audio samples, closes streams and digital driver, then shuts down Miles Sound System (AIL). |
| 0x005FFEE0 | 104 | CSoundMgr__stop_all_samples | Stops all active 2D and 3D audio samples in the sound manager by iterating through sample handle arrays and calling Miles Sound System end functions. |
| 0x005FFF50 | 318 | CSoundMgr__FadeStreamVolume | Gradually fades audio stream volume up (param=1) or down (param≠1) over ~10 seconds with 10ms steps. |
| 0x006000A0 | 14 | CSoundStream__GetVolume | Retrieves volume level (0-127) from CSoundStream object at offset 0xe4, returns 0 if null. |
| 0x006000B0 | 71 | CSoundStream__IsPlaying | Checks if either primary or secondary audio stream is actively playing (status==2) when audio system initialized. |
| 0x00600100 | 25 | CSoundStream__CheckIfDone | Returns 1 if AIL stream finished playing (status==8), else returns masked status value. |
| 0x00600130 | 81 | CSoundStream__PauseResume | Pauses/resumes audio stream playback and restores filename from backup on resume if modified. |
| 0x00600190 | 476 | CSoundManager__Play3DSample | Plays a 3D audio sample at specified coordinates with volume/distance falloff, using AIL 3D provider or 2D fallback. |
| 0x00600370 | 181 | CSoundManager__SetBGMTrack | Sets BGM track filename, triggers playback if sound type 7 enabled, configures 3D audio room type via AIL provider. |
| 0x00600430 | 272 | CSoundManager__Play2DSoundWithDistance | Plays 2D sound with distance-based volume attenuation using 3D coordinates and AIL audio library. |
| 0x00600540 | 292 | CSoundManager__PlayBGM | Manages BGM playback by comparing track names and spawning/stopping audio threads via _beginthreadex with fade volume handling. |
| 0x00600770 | 631 | CSoundManager__Play3DSound | Plays a 3D sound effect at specified position using Miles Sound System, with fallback to 2D audio based on configuration mode. |
| 0x006009F0 | 135 | CSoundManager__StartBGMStream | Opens/restarts BGM audio stream with volume and loop settings; closes previous stream if flag 0x415 is set. |
| 0x00600A80 | 42 | CSoundManager__SetSFXVolume | Clamps SFX volume parameter to [0, 127] range and stores at CSoundManager offset 0xe8 for 2D sound effects. |
| 0x00600AB0 | 42 | CSoundManager__Set3DSoundVolume | Clamps 3D sound volume parameter to valid range [0, 127] and stores at offset 0x134 in CSoundManager instance. |
| 0x00600AE0 | 42 | CSoundManager__SetBGMVolume | Clamps BGM volume parameter to valid MIDI range [0, 127] and stores in CSoundManager instance at offset 0xe0. |
| 0x00600B10 | 134 | CSoundMgr__Set3DOrientation | Sets 3D audio listener orientation by converting angle to sin/cos and calling AIL_set_3D_orientation. |
| 0x00600BA0 | 59 | CSoundMgr__SetRoomType | Sets 3D audio reverb environment type via AIL provider, stores capability flag at offset 0x404. |
| 0x00600BE0 | 81 | CSoundStream__SetVolume | Clamps volume parameter to 0-127 range and applies it to primary and secondary AIL stream handles. |
| 0x00603BF0 | 75 | CSoundMgr__scalar_dtor_A | Destructor for CSoundMgr that deallocates a 0x4c-byte sound resource at offset +4 with stack canary validation. |
| 0x00603C40 | 75 | CSoundMgr__scalar_dtor_B | Destructor for CSoundMgr that deallocates a 32-byte heap block at offset +4 with stack guard validation. |
| 0x00603C90 | 67 | CSoundMgr__SetVtable | Sets vtable pointer for C3dActorPC layer with SEH frame setup/teardown |
| 0x00603CE0 | 67 | CSoundMgr__vtable_stub_B | Sets vtable pointer for C3dActorPC layer, likely initializing sound manager object with destructor reference. |
| 0x007292E0 | 124 | CSoundMixer__Constructor | Constructs CSoundMixer object, initializes vtable, creates 2 sub-objects (0xC bytes each), zeroes data at offset 0x14A |
| 0x00729760 | 156 | CSoundRes__NewSimple | Allocates and initializes a CSoundRes object (0x118 bytes) with vtable, zeroing data/flags fields. |
| 0x00729800 | 569 | CSoundRes__LoadFromFile | Loads sound files (WAV/MP3/PCM) via Miles Sound System, decompresses ADPCM/ASI formats, stores in CSoundRes object. |
| 0x00729BC0 | 61 | CSoundRes__FreeSoundData | Frees sound data buffer using AIL_mem_free_lock if AIL-allocated, otherwise standard free() |
| 0x00729C00 | 91 | CSoundRes__ScalarDestructor | Scalar deleting destructor for CSoundRes that conditionally frees memory based on param_2 flag |
| 0x00729C60 | 104 | CSoundRes__Constructor | Initializes CSoundRes object by calling parent CResourceHandle constructor and zeroing sound resource state fields at offsets 0x44-0x45. |
| 0x00775500 | 30 | BinkPlayer__Init | Initializes BinkPlayer structure by zeroing binkHandle, width, height, fileHandle, and loopMode fields. |
| 0x00775520 | 104 | BinkPlayer__Close | Closes Bink video player handle and releases associated CFile resource object. |
| 0x00775590 | 56 | BinkPlayer__CloseNoSEH | Closes Bink video handle and releases associated CFile object without SEH exception handling |
| 0x007755D0 | 145 | BinkPlayer__CopyFrameToSurface | Locks render surface, copies current Bink video frame data to buffer, unlocks surface, and marks dirty rectangle for redraw. |
| 0x00775670 | 335 | BinkPlayer__OpenFile | Opens a Bink video file with optional CFile wrapper, supporting loop mode and displaying errors on failure. |
| 0x007757C0 | 146 | BinkPlayer__UpdateFrame | Updates Bink video playback frame, handling frame skipping, looping, and completion detection for RO cinematics. |
| 0x00A86BF0 | 88 | CBinkPlayer__OnKeyInput | Handles keyboard input for Bink video player; skips on 'g' key, stops on 'R' key, pauses on other keys. |
| 0x00A86C50 | 29 | CBinkPlayer__Close | Closes a Bink video player instance by calling _BinkClose_4 and nullifying the pointer. |
| 0x00A86CA0 | 560 | CBinkPlayer__PlayOpening | Plays opening.bik video using Bink SDK with DirectSound, manages frame timing via performance counters, processes Windows messages. |
| 0x00A86ED0 | 18 | CBinkPlayer__Pause | Wrapper that pauses Bink video playback by delegating to the underlying _BinkPause_8 API function. |
| 0x00A86EF0 | 99 | CBinkPlayer__ReadBinkModeRegistry | Reads BINKMODE value from Windows registry HKEY_LOCAL_MACHINE into CBinkPlayer instance at offset 0xc. |
| 0x00A86F60 | 101 | CBinkPlayer__WriteBinkModeRegistry | Writes BINKMODE value to Windows registry under HKEY_LOCAL_MACHINE for Bink video player configuration persistence. |
| 0x00B6C630 | 216 | CEffect__FindActiveChannelAndCopyWavFilename | Iterates through effect channels to find active one with alpha>0, then copies its WAV filename string from UIWindowMgr. |
| 0x00CAD2D0 | 274 | setup_bgm_fadeout_timer | Disables existing fadeout timers, calculates fade duration from elapsed/total time, allocates CBgmFade object, registers with event manager. |
| 0x00CAD3F0 | 274 | create_bgm_fadein_timer | Initializes a timed BGM fade-in event by disabling previous type-6 events and registering new CBgmFade fade-in timer with CTimedEventMgr. |
| 0x00DE17F0 | 56 | CSound__DestroyTimerAndCleanup | Destroys multimedia timer, deallocates critical section, and clears red-black tree for CSound class cleanup. |
| 0x00DE1830 | 55 | CSound__FreeBufferAndCleanup | Frees virtual memory buffer and deletes critical section for CSound object cleanup during destruction. |
No function here matches that. Search all 43,836 functions instead.