102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference |
GitLab repository
Toggle main menu visibility
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
"
5
#include "
pcdogs/types/common.h
"
6
7
#pragma pack(push, 4)
8
9
struct
Audio_MusicStreamRecord
10
{
11
AIL_HSTREAM
handle
;
12
char
filename
[0x0];
13
};
14
15
#pragma pack(pop)
16
_Static_assert
(
sizeof
(
struct
Audio_MusicStreamRecord
) == 4,
"Audio_MusicStreamRecord size"
);
17
18
#pragma pack(push, 4)
19
20
struct
Audio_PCMWaveFormat16
21
{
22
uint16_t
format_tag
;
23
uint16_t
channel_count
;
24
uint32_t
samples_per_second
;
25
uint32_t
average_bytes_per_second
;
26
uint16_t
block_align
;
27
uint16_t
bits_per_sample
;
28
};
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
37
struct
Audio_SampleHandle
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
51
struct
Audio_SampleHandleEntry
52
{
53
struct
Audio_SampleHandleEntry
*
prev_ptr
;
54
struct
Audio_SampleHandleEntry
*
next_ptr
;
55
int32_t *
ail_handle
;
56
struct
Audio_SoundEntry
*
sound_entry
;
57
uint32_t
additional_data
;
58
};
59
60
#pragma pack(pop)
61
_Static_assert
(
sizeof
(
struct
Audio_SampleHandleEntry
) == 20,
"Audio_SampleHandleEntry size"
);
62
63
#pragma pack(push, 1)
64
65
struct
Audio_SoundDefinition
66
{
67
void
**
sample_table_ptr
;
68
uint8_t
flags
;
69
uint8_t
pan
;
70
uint8_t
replacement_priority
;
71
uint8_t
reserved_07
;
72
int32_t
volume_fp12
;
73
int32_t
pitch_fp12
;
74
int32_t
spatial_range_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
82
struct
Audio_SoundDescriptor
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
93
struct
Audio_SoundEntry
94
{
95
struct
Audio_SoundEntry
*
prev
;
96
struct
Audio_SoundEntry
*
next
;
97
struct
Audio_SoundDefinition
*
sound_def_ptr
;
98
struct
Math_Vec3I32
*
position_ptr
;
99
100
struct
101
{
102
int32_t
x
;
103
int32_t
y
;
104
int32_t
z
;
105
}
listener_pos
;
106
107
struct
108
{
109
int32_t
x
;
110
int32_t
y
;
111
int32_t
z
;
112
}
sound_pos
;
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
126
struct
Audio_SoundSlot
127
{
128
int32_t
cached_volume
;
129
int32_t
cached_pan
;
130
int32_t
cached_playback_rate
;
131
int32_t
base_playback_rate
;
132
AIL_HSAMPLE
sample_handle
;
133
};
134
135
#pragma pack(pop)
136
_Static_assert
(
sizeof
(
struct
Audio_SoundSlot
) == 20,
"Audio_SoundSlot size"
);
137
138
#pragma pack(push, 2)
139
140
struct
Audio_WaveFormat
141
{
142
int16_t
format_tag
;
143
int16_t
channels
;
144
int16_t
bits_per_sample
;
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
153
struct
Audio_CollisionSoundCooldownEntry
154
{
155
struct
Actor_State
*
other_actor
;
156
struct
Math_Vec3I32
velocity
;
157
struct
Math_Vec3I32
impact_velocity
;
158
int32_t
sound_key
;
159
uint32_t
start_frame
;
160
uint32_t
expires_frame
;
161
};
162
163
#pragma pack(pop)
164
_Static_assert
(
sizeof
(
struct
Audio_CollisionSoundCooldownEntry
) == 40,
"Audio_CollisionSoundCooldownEntry size"
);
165
166
#endif
/* PCDOGS_AUDIO_TYPES_H */
common.h
AIL_HSAMPLE
void * AIL_HSAMPLE
Definition
common.h:7
AIL_HSTREAM
void * AIL_HSTREAM
Definition
common.h:8
types.h
Actor_State
Definition
types.h:376
Audio_CollisionSoundCooldownEntry
Definition
types.h:154
Audio_CollisionSoundCooldownEntry::expires_frame
uint32_t expires_frame
Definition
types.h:160
Audio_CollisionSoundCooldownEntry::start_frame
uint32_t start_frame
Definition
types.h:159
Audio_CollisionSoundCooldownEntry::other_actor
struct Actor_State * other_actor
Definition
types.h:155
Audio_CollisionSoundCooldownEntry::impact_velocity
struct Math_Vec3I32 impact_velocity
Definition
types.h:157
Audio_CollisionSoundCooldownEntry::sound_key
int32_t sound_key
Definition
types.h:158
Audio_CollisionSoundCooldownEntry::velocity
struct Math_Vec3I32 velocity
Definition
types.h:156
Audio_MusicStreamRecord
Definition
types.h:10
Audio_MusicStreamRecord::handle
AIL_HSTREAM handle
Definition
types.h:11
Audio_MusicStreamRecord::filename
char filename[0x0]
Definition
types.h:12
Audio_PCMWaveFormat16
Definition
types.h:21
Audio_PCMWaveFormat16::samples_per_second
uint32_t samples_per_second
Definition
types.h:24
Audio_PCMWaveFormat16::channel_count
uint16_t channel_count
Definition
types.h:23
Audio_PCMWaveFormat16::bits_per_sample
uint16_t bits_per_sample
Definition
types.h:27
Audio_PCMWaveFormat16::average_bytes_per_second
uint32_t average_bytes_per_second
Definition
types.h:25
Audio_PCMWaveFormat16::format_tag
uint16_t format_tag
Definition
types.h:22
Audio_PCMWaveFormat16::block_align
uint16_t block_align
Definition
types.h:26
Audio_SampleHandleEntry
Definition
types.h:52
Audio_SampleHandleEntry::next_ptr
struct Audio_SampleHandleEntry * next_ptr
Definition
types.h:54
Audio_SampleHandleEntry::additional_data
uint32_t additional_data
Definition
types.h:57
Audio_SampleHandleEntry::sound_entry
struct Audio_SoundEntry * sound_entry
Definition
types.h:56
Audio_SampleHandleEntry::ail_handle
int32_t * ail_handle
Definition
types.h:55
Audio_SampleHandleEntry::prev_ptr
struct Audio_SampleHandleEntry * prev_ptr
Definition
types.h:53
Audio_SampleHandle
Definition
types.h:38
Audio_SampleHandle::volume
int32_t volume
Definition
types.h:40
Audio_SampleHandle::frequency
int32_t frequency
Definition
types.h:41
Audio_SampleHandle::sound_id
int32_t sound_id
Definition
types.h:39
Audio_SampleHandle::status_flags
int32_t status_flags
Definition
types.h:43
Audio_SampleHandle::sample_handle
int32_t * sample_handle
Definition
types.h:42
Audio_SoundDefinition
Definition
types.h:66
Audio_SoundDefinition::flags
uint8_t flags
Definition
types.h:68
Audio_SoundDefinition::reserved_07
uint8_t reserved_07
Definition
types.h:71
Audio_SoundDefinition::sample_table_ptr
void ** sample_table_ptr
Definition
types.h:67
Audio_SoundDefinition::volume_fp12
int32_t volume_fp12
Definition
types.h:72
Audio_SoundDefinition::pan
uint8_t pan
Definition
types.h:69
Audio_SoundDefinition::replacement_priority
uint8_t replacement_priority
Definition
types.h:70
Audio_SoundDefinition::spatial_range_fp12
int32_t spatial_range_fp12
Definition
types.h:74
Audio_SoundDefinition::pitch_fp12
int32_t pitch_fp12
Definition
types.h:73
Audio_SoundDescriptor
Definition
types.h:83
Audio_SoundDescriptor::sound_id
int32_t sound_id
Definition
types.h:84
Audio_SoundDescriptor::flags
int32_t flags
Definition
types.h:85
Audio_SoundEntry
Definition
types.h:94
Audio_SoundEntry::z
int32_t z
Definition
types.h:104
Audio_SoundEntry::prev
struct Audio_SoundEntry * prev
Definition
types.h:95
Audio_SoundEntry::next
struct Audio_SoundEntry * next
Definition
types.h:96
Audio_SoundEntry::flags
uint8_t flags
Definition
types.h:117
Audio_SoundEntry::sound_def_ptr
struct Audio_SoundDefinition * sound_def_ptr
Definition
types.h:97
Audio_SoundEntry::volume
int16_t volume
Definition
types.h:114
Audio_SoundEntry::pitch
int16_t pitch
Definition
types.h:115
Audio_SoundEntry::pad_2f
uint8_t pad_2f
Definition
types.h:118
Audio_SoundEntry::sound_pos
struct Audio_SoundEntry::@100114371203023164022211357127366373354240353340 sound_pos
Audio_SoundEntry::listener_pos
struct Audio_SoundEntry::@003200205222232126264271107277074317264256323153 listener_pos
Audio_SoundEntry::position_ptr
struct Math_Vec3I32 * position_ptr
Definition
types.h:98
Audio_SoundEntry::pan
int16_t pan
Definition
types.h:116
Audio_SoundEntry::x
int32_t x
Definition
types.h:102
Audio_SoundEntry::y
int32_t y
Definition
types.h:103
Audio_SoundSlot
Definition
types.h:127
Audio_SoundSlot::cached_playback_rate
int32_t cached_playback_rate
Definition
types.h:130
Audio_SoundSlot::cached_pan
int32_t cached_pan
Definition
types.h:129
Audio_SoundSlot::base_playback_rate
int32_t base_playback_rate
Definition
types.h:131
Audio_SoundSlot::cached_volume
int32_t cached_volume
Definition
types.h:128
Audio_SoundSlot::sample_handle
AIL_HSAMPLE sample_handle
Definition
types.h:132
Audio_WaveFormat
Definition
types.h:141
Audio_WaveFormat::format_tag
int16_t format_tag
Definition
types.h:142
Audio_WaveFormat::channels
int16_t channels
Definition
types.h:143
Audio_WaveFormat::bits_per_sample
int16_t bits_per_sample
Definition
types.h:144
Audio_WaveFormat::block_align
int16_t block_align
Definition
types.h:145
Math_Vec3I32
Definition
types.h:469
include
pcdogs
audio
types.h
Generated by
1.17.0