benilla-re systems structs docs

Sound

struct · sound · 144 bytes

Meaning
Holds a playing stream: six list links, channel, stream, flags, fade, position, GUID, volume, bus and pauses
Confidence
verified, proof one
Finding
sound/engine#the-sound-object

Finding: The sound object in sound: the engine

A Sound is a 0x90-byte record from a pool of 40-record blocks. It holds six list links (+0x00 every sound, +0x08 fades, +0x10 objects that move, +0x18 panning, +0x20 distance cutoff, +0x28 ended), the FMOD channel (+0x30, −1 when none) and stream (+0x34), the flags (+0x38), the fade state (+0x40 start, +0x44 level, +0x48 rate per ms), the position (+0x50) and velocity (+0x5c), the object GUID it follows (+0x68), the cutoff distance (+0x70), the volume (+0x74, 1.0), the distance gain (+0x78, 1.0), the frequency (+0x7c, 22050), the name hash (+0x80), the bus (+0x84) and the pause reasons (+0x88).

The derivation is in the doc.

Fields 22

offsetsizetypenamemeaningconfidencefinding
0x00008void *[2]m_allLinkHolds the link on the every-sound listverified, proof onesound/engine#the-sound-object
0x00088void *[2]m_fadeLinkHolds the link on the fade listverified, proof onesound/engine#the-sound-object
0x00108void *[2]m_objectLinkHolds the link on the list of sounds that follow objectsverified, proof onesound/engine#the-sound-object
0x00188void *[2]m_panLinkHolds the link on the panning listverified, proof onesound/engine#the-sound-object
0x00208void *[2]m_cutoffLinkHolds the link on the distance cutoff listverified, proof onesound/engine#the-sound-object
0x00288void *[2]m_endedLinkHolds the link on the ended listverified, proof onesound/engine#the-sound-object
0x00304int32_tm_channelHolds the FMOD channel, -1 when noneverified, proof onesound/engine#the-sound-object
0x00344void *m_streamHolds the FMOD streamverified, proof onesound/engine#the-sound-object
0x00384uint32_tm_flagsHolds the caller's flags in the low byte and the engine's state bits aboveverified, proof onesound/engine#the-sound-object
0x00404uint32_tm_fadeStartHolds the fade start time in millisecondsverified, proof onesound/engine#the-sound-object
0x00444int32_tm_fadeLevelHolds the fade target or start level, 0 to 255verified, proof onesound/engine#the-sound-object
0x00484floatm_fadeRateHolds the fade rate in levels per millisecond, below 0 for a fade outverified, proof onesound/engine#the-sound-object
0x005012float[3]m_positionHolds the position in world axesverified, proof onesound/engine#the-sound-object
0x005c12float[3]m_velocityHolds the velocity in world axesverified, proof onesound/engine#the-sound-object
0x00688uint64_tm_guidHolds the GUID of the object the sound followsverified, proof onesound/engine#the-sound-object
0x00704floatm_cutoffHolds the cutoff distance, 0 for noneverified, proof onesound/engine#the-sound-object
0x00744floatm_volumeHolds the volume, 1.0 by defaultverified, proof onesound/engine#the-sound-object
0x00784floatm_distanceGainHolds the distance gain, 1.0 by defaultverified, proof onesound/engine#the-sound-object
0x007c4uint32_tm_frequencyHolds the frequency, 22050 by defaultverified, proof onesound/engine#the-sound-object
0x00804uint32_tm_nameHashHolds the file name's SStrHash, -1 by defaultverified, proof onesound/engine#the-sound-object
0x00844uint32_tm_busHolds the bus the sound opened onverified, proof onesound/engine#the-sound-object
0x00884uint32_tm_pauseReasonsHolds the four pause reason bitsverified, proof onesound/engine#the-sound-object