annotate AudioPlayer.h @ 16:5a95b9ed31f3

13.10.12
author Lower
date Sat, 13 Oct 2012 20:25:41 +0600
parents 540178ef9b18
children be2066176d89
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "OSAPI.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 struct _PROVIDER {char unk_0;};
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 struct _SAMPLE {char unk_0;};
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 //struct _STREAM {char unk_0;};
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 struct _REDBOOK {char unk_0;};
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 struct _DIG_DRIVER {char unk_0;};
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 struct _SEQUENCE {char unk_0;};
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 /* 22 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 struct AudioPlayer_3DSample
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 inline AudioPlayer_3DSample()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 hSample = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 field_4 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 field_8 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 field_C = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 void *hSample;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 int field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 int field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 int field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 /* 26 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 struct SoundHeader
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 char pSoundName[40];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 unsigned int uFileOffset;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 unsigned int uCompressedSize;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 unsigned int uDecompressedSize;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 /* 27 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 struct MixerChannel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 {
2
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
58 inline MixerChannel():
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
59 hSample(nullptr), dword_000004(0), uSourceTrackIdx(0), uSourceTrackID(0)
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
60 {}
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
61
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 _SAMPLE *hSample;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 int dword_000004;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 unsigned int uSourceTrackIdx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 unsigned int uSourceTrackID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 /* 308 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 enum SoundID
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 SOUND_0 = 0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 SOUND_EnteringAHouse = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 SOUND_8 = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 SOUND_27 = 0x1B,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 SOUND_Arcomage_LoseResources = 0x78,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 SOUND_Arcomage_AddResources = 0x79,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 SOUND_Arcomage_TowerWallDamage = 0x7A,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 SOUND_Arcomage_DrawCard = 0x7B,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 SOUND_Arcomage_ProductionDamage = 0x7D,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 SOUND_Arcomage_ProductionUpgrade = 0x7E,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 SOUND_Arcomage_127 = 0x7F,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 SOUND_Arcomage_128 = 0x80,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 SOUND_Arcomage_TowerUpgrade = 0x81,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 SOUND_Arcomage_WallUpgrade = 0x84,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 SOUND_GoldReceived = 0xC8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 SOUND_PlayerCantCastSpell = 0xD1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 SOUND_Bell = 0xD9,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 SOUND_20001 = 0x4E21,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95
3
540178ef9b18 Main menu functionality
Nomad
parents: 2
diff changeset
96
540178ef9b18 Main menu functionality
Nomad
parents: 2
diff changeset
97 enum MusicID: unsigned __int32
540178ef9b18 Main menu functionality
Nomad
parents: 2
diff changeset
98 {
540178ef9b18 Main menu functionality
Nomad
parents: 2
diff changeset
99 MUSIC_Credits = 15
540178ef9b18 Main menu functionality
Nomad
parents: 2
diff changeset
100 };
540178ef9b18 Main menu functionality
Nomad
parents: 2
diff changeset
101
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 /* 20 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 struct AudioPlayer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 //----- (004A9669) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 AudioPlayer():
2
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
108 bPlayerReady(false), b3DSoundInitialized(false),
3
540178ef9b18 Main menu functionality
Nomad
parents: 2
diff changeset
109 hAILRedbook(nullptr), hStream(nullptr)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 uMixerChannels = 16;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 field_2D0_time_left = 256;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 uNumRedbookTracks = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 uCurrentMusicTrackLength = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 field_2D4 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 s3DSoundVolume = 127;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 void SetMusicVolume(int vol);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 void SetMasterVolume(unsigned int uVolume);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 void _4AA258(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 void PlaySound(SoundID eSoundID, signed int a3, unsigned int uNumRepeats, signed int a5, signed int a6, int a7, unsigned int uVolume, int sPlaybackRate);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 void _4AAFCF();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 void StopChannels(int uStartChannel, int uEndChannel);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 void LoadAudioSnd();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 void Initialize(HWND hWnd);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 LSTATUS CheckA3DSupport(char a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 void Release();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 void _4ABE55(MixerChannel *pChannel);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 void _4ABF23(AudioPlayer_3DSample *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131 void SetEAXPreferences();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 void SetMapEAX();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 int _4AC0A2();
3
540178ef9b18 Main menu functionality
Nomad
parents: 2
diff changeset
134 void PlayMusicTrack(enum MusicID eTrack);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 void __cdecl MessWithChannels();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 unsigned int bEAXSupported;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 unsigned int b3DSoundInitialized;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 int s3DSoundVolume;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 struct _PROVIDER *h3DSoundProvider;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 int uNum3DSamples;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 struct AudioPlayer_3DSample p3DSamples[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 int field_214;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 int sRedbookVolume;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 char p3DSoundProvider[128];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 unsigned int bPlayerReady;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 HWND hWindow;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 struct _REDBOOK *hAILRedbook;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 struct _DIG_DRIVER *hDigDriver;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 int dword_0002AC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 struct _SEQUENCE *hSequence;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 int dword_0002B4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 struct SoundHeader *pSoundHeaders;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 HANDLE hAudioSnd;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156 unsigned int uNumSoundHeaders;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 unsigned int uMasterVolume;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 int dword_0002C8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 int dword_0002CC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 int field_2D0_time_left;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 int field_2D4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 unsigned int uCurrentMusicTrackLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 unsigned int uNumRedbookTracks;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 unsigned int uCurrentMusicTrackStartMS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 unsigned int uCurrentMusicTrackEndMS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 struct MixerChannel pMixerChannels[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 int uMixerChannels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 int field_3EC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 char pDeviceNames[16][128];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 int array_000BF0[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 int array_000C30[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 unsigned int uNumDevices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 struct _STREAM *hStream;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 char field_C78[8];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 int cGameCDDriveLetter;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 /* 325 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 enum SOUND_DESC_TYPE : __int32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 SOUND_DESC_LEVEL = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 SOUND_DESC_SYSTEM = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 SOUND_DESC_SWAP = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192 SOUND_DESC_3 = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 SOUND_DESC_LOCK = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 /* 326 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197 enum SOUND_DESC_FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 SOUND_DESC_LOCKED = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200 SOUND_DESC_3D = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 struct SoundDesc
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209 char pSoundName[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 unsigned int uSoundID;
2
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
211 SOUND_DESC_TYPE eType;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 void *pSoundData[17];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 void *p3DSound;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 int bDecompressed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 struct SoundList
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 inline SoundList():
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 uNumSounds(0), pSounds(nullptr), uTotalLoadedSoundSize(0)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 {}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 void Initialize();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 __int16 _4A9A67(int a1, unsigned int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 int LoadSound(unsigned int a2, LPVOID lpBuffer, int uBufferSizeLeft, int *pOutSoundSize, int a6);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 SoundDesc *Release();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 void _4A9D79(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 void _4A9DCD(unsigned int uSoundID, char a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 void ToFile();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 void *FromFile(void *pSerialized);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 int FromFileTxt(const char *Args);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 unsigned int uNumSounds;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 SoundDesc *pSounds;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 unsigned int uTotalLoadedSoundSize;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 /* 241 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 struct Sound
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 unsigned int uID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 char field_4[120];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 unsigned int *pSoundData;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 extern int Aureal3D_SplashScreen;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 extern int Aureal3D_SplashAudio;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 extern int uFindSound_BinSearch_ResultID; // weak
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264 extern int uLastLoadedSoundID; // weak
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 extern int sLastTrackLengthMS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 extern Sound pSounds[3000];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 extern AudioPlayer *pAudioPlayer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 extern SoundList *pSoundList;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 extern unsigned __int8 uSoundVolumeMultiplier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 extern unsigned __int8 uVoicesVolumeMultiplier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 extern unsigned __int8 uMusicVolimeMultiplier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 extern int bWalkSound; // idb
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 extern float pSoundVolumeLevels[]; // idb
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 /* 379 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286 struct stru339_spell_sound
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288 int _494836(int uSoundID, int a6);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 char pSounds[44744];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 int field_AEC8[45];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 int field_AF7C[18];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 int field_AFC4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294 int pSoundsSizes[2];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 int pSoundsOffsets[2];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 extern stru339_spell_sound stru_A750F8[4];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 extern stru339_spell_sound stru_AA1058[4];