102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1/* Recovered declarations; ABI and original layout preserved. */
2#ifndef PCDOGS_AUDIO_TYPES_H
3#define PCDOGS_AUDIO_TYPES_H
4#include "pcdogs/math/types.h"
6
7#pragma pack(push, 4)
8
14
15#pragma pack(pop)
16_Static_assert(sizeof(struct Audio_MusicStreamRecord) == 4, "Audio_MusicStreamRecord size");
17
18#pragma pack(push, 4)
19
29
30#pragma pack(pop)
31_Static_assert(sizeof(struct Audio_PCMWaveFormat16) == 16, "Audio_PCMWaveFormat16 size");
32_Static_assert(offsetof(struct Audio_PCMWaveFormat16, channel_count) == 2, "PCM channel count offset");
33_Static_assert(offsetof(struct Audio_PCMWaveFormat16, samples_per_second) == 4, "PCM sample rate offset");
34
35#pragma pack(push, 4)
36
38{
39 int32_t sound_id;
40 int32_t volume;
41 int32_t frequency;
42 int32_t *sample_handle;
43 int32_t status_flags;
44};
45
46#pragma pack(pop)
47_Static_assert(sizeof(struct Audio_SampleHandle) == 20, "Audio_SampleHandle size");
48
49#pragma pack(push, 4)
50
59
60#pragma pack(pop)
61_Static_assert(sizeof(struct Audio_SampleHandleEntry) == 20, "Audio_SampleHandleEntry size");
62
63#pragma pack(push, 1)
64
66{
68 uint8_t flags;
69 uint8_t pan;
71 uint8_t reserved_07;
72 int32_t volume_fp12;
73 int32_t pitch_fp12;
75};
76
77#pragma pack(pop)
78_Static_assert(sizeof(struct Audio_SoundDefinition) == 20, "Audio_SoundDefinition size");
79
80#pragma pack(push, 4)
81
83{
84 int32_t sound_id;
85 int32_t flags;
86};
87
88#pragma pack(pop)
89_Static_assert(sizeof(struct Audio_SoundDescriptor) == 8, "Audio_SoundDescriptor size");
90
91#pragma pack(push, 4)
92
94{
99
100 struct
101 {
102 int32_t x;
103 int32_t y;
104 int32_t z;
106
107 struct
108 {
109 int32_t x;
110 int32_t y;
111 int32_t z;
113
114 int16_t volume;
115 int16_t pitch;
116 int16_t pan;
117 uint8_t flags;
118 uint8_t pad_2f;
119};
120
121#pragma pack(pop)
122_Static_assert(sizeof(struct Audio_SoundEntry) == 48, "Audio_SoundEntry size");
123
124#pragma pack(push, 4)
125
134
135#pragma pack(pop)
136_Static_assert(sizeof(struct Audio_SoundSlot) == 20, "Audio_SoundSlot size");
137
138#pragma pack(push, 2)
139
141{
142 int16_t format_tag;
143 int16_t channels;
145 int16_t block_align;
146};
147
148#pragma pack(pop)
149_Static_assert(sizeof(struct Audio_WaveFormat) == 8, "Audio_WaveFormat size");
150
151#pragma pack(push, 4)
152
162
163#pragma pack(pop)
164_Static_assert(sizeof(struct Audio_CollisionSoundCooldownEntry) == 40, "Audio_CollisionSoundCooldownEntry size");
165
166#endif /* PCDOGS_AUDIO_TYPES_H */
void * AIL_HSAMPLE
Definition common.h:7
void * AIL_HSTREAM
Definition common.h:8
struct Actor_State * other_actor
Definition types.h:155
struct Math_Vec3I32 impact_velocity
Definition types.h:157
struct Math_Vec3I32 velocity
Definition types.h:156
AIL_HSTREAM handle
Definition types.h:11
char filename[0x0]
Definition types.h:12
uint32_t samples_per_second
Definition types.h:24
uint16_t channel_count
Definition types.h:23
uint16_t bits_per_sample
Definition types.h:27
uint32_t average_bytes_per_second
Definition types.h:25
uint16_t format_tag
Definition types.h:22
uint16_t block_align
Definition types.h:26
struct Audio_SampleHandleEntry * next_ptr
Definition types.h:54
uint32_t additional_data
Definition types.h:57
struct Audio_SoundEntry * sound_entry
Definition types.h:56
int32_t * ail_handle
Definition types.h:55
struct Audio_SampleHandleEntry * prev_ptr
Definition types.h:53
int32_t volume
Definition types.h:40
int32_t frequency
Definition types.h:41
int32_t sound_id
Definition types.h:39
int32_t status_flags
Definition types.h:43
int32_t * sample_handle
Definition types.h:42
uint8_t reserved_07
Definition types.h:71
void ** sample_table_ptr
Definition types.h:67
int32_t volume_fp12
Definition types.h:72
uint8_t replacement_priority
Definition types.h:70
int32_t spatial_range_fp12
Definition types.h:74
int32_t pitch_fp12
Definition types.h:73
int32_t z
Definition types.h:104
struct Audio_SoundEntry * prev
Definition types.h:95
struct Audio_SoundEntry * next
Definition types.h:96
uint8_t flags
Definition types.h:117
struct Audio_SoundDefinition * sound_def_ptr
Definition types.h:97
int16_t volume
Definition types.h:114
int16_t pitch
Definition types.h:115
uint8_t pad_2f
Definition types.h:118
struct Audio_SoundEntry::@100114371203023164022211357127366373354240353340 sound_pos
struct Audio_SoundEntry::@003200205222232126264271107277074317264256323153 listener_pos
struct Math_Vec3I32 * position_ptr
Definition types.h:98
int16_t pan
Definition types.h:116
int32_t x
Definition types.h:102
int32_t y
Definition types.h:103
int32_t cached_playback_rate
Definition types.h:130
int32_t cached_pan
Definition types.h:129
int32_t base_playback_rate
Definition types.h:131
int32_t cached_volume
Definition types.h:128
AIL_HSAMPLE sample_handle
Definition types.h:132
int16_t format_tag
Definition types.h:142
int16_t channels
Definition types.h:143
int16_t bits_per_sample
Definition types.h:144
int16_t block_align
Definition types.h:145