102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
DTTR_PCDOGS_T_Audio_SoundDefinition Struct Reference

#include <dttr_pcdogs.h>

Data Fields

void ** sample_table_ptr
 Offset 0x0.
uint8_t flags
uint8_t reserved_05
uint8_t replacement_priority
uint8_t reserved_07
int32_t volume_fp12
 Offset 0x8.
int32_t pitch_fp12
 Offset 0xC.
voidspatial_data_ptr
 Offset 0x10.

Detailed Description

Sound definition for Audio_PlaySoundDefinition3D and Audio_AllocateSoundSlot, with sample table, flags, replacement priority, fixed-point volume/pitch, optional spatial data, and script playback latch at flags bit 0x40.

Definition at line 1325 of file dttr_pcdogs.h.

Field Documentation

◆ flags

uint8_t DTTR_PCDOGS_T_Audio_SoundDefinition::flags

Audio definition flags. Script_OpPlaySoundBlockOrWait mutates bit 0x40 as a script_playback_active_or_wait_latch around direct playback. Offset 0x4.

Definition at line 1327 of file dttr_pcdogs.h.

◆ pitch_fp12

int32_t DTTR_PCDOGS_T_Audio_SoundDefinition::pitch_fp12

Offset 0xC.

Definition at line 1341 of file dttr_pcdogs.h.

◆ replacement_priority

uint8_t DTTR_PCDOGS_T_Audio_SoundDefinition::replacement_priority

Priority byte used by Audio_AllocateSoundSlot when selecting a non-protected active sound to evict; a requested sound can replace an active sound when requested priority is less than or equal to the active definition priority. Offset 0x6.

Definition at line 1333 of file dttr_pcdogs.h.

◆ reserved_05

uint8_t DTTR_PCDOGS_T_Audio_SoundDefinition::reserved_05

Reserved audio definition byte; allocation and playback paths consume the neighboring flags and replacement priority fields. Offset 0x5.

Definition at line 1330 of file dttr_pcdogs.h.

◆ reserved_07

uint8_t DTTR_PCDOGS_T_Audio_SoundDefinition::reserved_07

Reserved audio definition byte before the volume and pitch fields. Offset 0x7.

Definition at line 1338 of file dttr_pcdogs.h.

◆ sample_table_ptr

void** DTTR_PCDOGS_T_Audio_SoundDefinition::sample_table_ptr

Offset 0x0.

Definition at line 1326 of file dttr_pcdogs.h.

◆ spatial_data_ptr

void* DTTR_PCDOGS_T_Audio_SoundDefinition::spatial_data_ptr

Offset 0x10.

Definition at line 1342 of file dttr_pcdogs.h.

◆ volume_fp12

int32_t DTTR_PCDOGS_T_Audio_SoundDefinition::volume_fp12

Offset 0x8.

Definition at line 1340 of file dttr_pcdogs.h.


The documentation for this struct was generated from the following file: