@@ -44,15 +44,15 @@ struct HALO_SOUND_SYSTEM
4444{
4545 struct HALO_SOUND_SYSTEM_vtbl
4646 {
47- long (__thiscall* Init)(HALO_SOUND_SYSTEM*, long , void **);
47+ int32 (__thiscall* Init)(HALO_SOUND_SYSTEM*, int32 , void **);
4848 void (__thiscall* Term)(HALO_SOUND_SYSTEM*);
4949 void (__thiscall* Update)(HALO_SOUND_SYSTEM*);
5050 void (__thiscall* InitForNewMap)(HALO_SOUND_SYSTEM*, void *);
51- long (__thiscall* DisposeFromOldMap)(HALO_SOUND_SYSTEM*);
51+ int32 (__thiscall* DisposeFromOldMap)(HALO_SOUND_SYSTEM*);
5252 void * __func14;
5353 void * __func18;
54- long (__thiscall* InitUIScreenSounds)(HALO_SOUND_SYSTEM*);
55- long (__thiscall* TermUIScreenSounds)(HALO_SOUND_SYSTEM*);
54+ int32 (__thiscall* InitUIScreenSounds)(HALO_SOUND_SYSTEM*);
55+ int32 (__thiscall* TermUIScreenSounds)(HALO_SOUND_SYSTEM*);
5656 void * __func24;
5757 void * __func28;
5858 void * __func2C;
@@ -62,48 +62,48 @@ struct HALO_SOUND_SYSTEM
6262 };
6363 HALO_SOUND_SYSTEM_vtbl* __vftable;
6464
65- long Init (long a1, void ** a2) { return __vftable->Init (this , a1, a2); }
65+ int32 Init (int32 a1, void ** a2) { return __vftable->Init (this , a1, a2); }
6666 void Term () { __vftable->Term (this ); }
6767 void Update () { __vftable->Update (this ); }
6868 void InitForNewMap () { __vftable->InitForNewMap (this , 0 ); }
69- long DisposeFromOldMap () { return __vftable->DisposeFromOldMap (this ); }
70- long InitUIScreenSounds () { return __vftable->InitUIScreenSounds (this ); }
71- long TermUIScreenSounds () { return __vftable->TermUIScreenSounds (this ); }
69+ int32 DisposeFromOldMap () { return __vftable->DisposeFromOldMap (this ); }
70+ int32 InitUIScreenSounds () { return __vftable->InitUIScreenSounds (this ); }
71+ int32 TermUIScreenSounds () { return __vftable->TermUIScreenSounds (this ); }
7272
7373 static HALO_SOUND_SYSTEM* __cdecl GetInstance ();
7474 void __thiscall LoadCinePreload ();
7575 void __thiscall LoadTagParams ();
7676
7777 struct VolumeStruct
7878 {
79- long __unknown0;
79+ int32 __unknown0;
8080 real32 __unknown4;
8181 };
8282
8383 // starts as volume but morths into some data in `FMOD::EventSystemI`
8484 real32 Volume;
8585
86- long __unknown8;
87- long SampleRate; // 48000
86+ int32 __unknown8;
87+ int32 SampleRate; // 48000
8888 VolumeStruct SfxVolume;
8989 VolumeStruct VoiceVolume;
9090 VolumeStruct MusicVolume;
9191 VolumeStruct MasterVolume;
9292 uint32 __flags30;
93- long __unknown34;
94- long __unknown38;
95- long __unknown3C;
96- long __unknown40;
93+ int32 __unknown34;
94+ int32 __unknown38;
95+ int32 __unknown3C;
96+ int32 __unknown40;
9797 real32 __unknown44;
98- long __unknown48;
98+ int32 __unknown48;
9999 real32 __unknown4C;
100- long __unknown50;
100+ int32 __unknown50;
101101 real32 __unknown54;
102- long __unknown58; // 5, SoundEncoding?
102+ int32 __unknown58; // 5, SoundEncoding?
103103 uint8 __data5C[0x18 ];
104104 HALO_CHANNEL* Channels;
105- long ChannelCount;
106- long MaximumChannelCount;
105+ int32 ChannelCount;
106+ int32 MaximumChannelCount;
107107 uint8 __data80[0x12C ];
108108 uint8 __data1AC[0x58 ];
109109};
@@ -131,7 +131,7 @@ namespace FMOD
131131 void * setPluginPath;
132132 void * getVersion;
133133 void * getInfo;
134- long (__stdcall* getSystemObject)(EventSystemI*, void *);
134+ int32 (__stdcall* getSystemObject)(EventSystemI*, void *);
135135 void * getMusicSystem;
136136 void * load;
137137 void * unload;
@@ -199,7 +199,7 @@ namespace FMOD
199199 };
200200 static_assert (sizeof (EventSystemI) == 0xE4 );
201201
202- extern long __stdcall System_init (int system, int maxchannels, unsigned int flags, void * extradriverdata);
202+ extern int32 __stdcall System_init (int system, int maxchannels, unsigned int flags, void * extradriverdata);
203203};
204204
205205namespace snd
@@ -219,19 +219,19 @@ namespace snd
219219 struct SYSTEM_vtbl
220220 {
221221 void * Destructor;
222- void (__thiscall* Init)(SYSTEM*, long , long );
223- long (__thiscall* Term)(SYSTEM*);
222+ void (__thiscall* Init)(SYSTEM*, int32, int32 );
223+ int32 (__thiscall* Term)(SYSTEM*);
224224 void * Mute;
225225 void * StopAll;
226- long (__thiscall* Update)(SYSTEM*, uint32);
226+ int32 (__thiscall* Update)(SYSTEM*, uint32);
227227 void * GetBuffer;
228228 void * Func07;
229229 void * Func08;
230230 void * RegisterData;
231231 void * RegisterLevelSounds;
232232 void * RegisterWavebank;
233233 void * CommitRegisteredWavebanks;
234- void (__thiscall* UnregisterWavebank)(SYSTEM*, long *);
234+ void (__thiscall* UnregisterWavebank)(SYSTEM*, int32 *);
235235 void * GetRegisteredWavebanks;
236236 void * PreloadSoundbank;
237237 void * UnloadSoundbank;
@@ -240,14 +240,14 @@ namespace snd
240240 void (__thiscall* SetPreset)(SYSTEM*, uint32*);
241241 void * Func20;
242242 void (__thiscall* Func21)(SYSTEM*, uint32, uint32);
243- void (__thiscall* Func22)(SYSTEM*, long );
243+ void (__thiscall* Func22)(SYSTEM*, int32 );
244244 void * SetListener;
245- void (__thiscall* GetListener)(SYSTEM*, long , uint64*, uint32, uint32, uint32);
245+ void (__thiscall* GetListener)(SYSTEM*, int32 , uint64*, uint32, uint32, uint32);
246246 void * GetInfo;
247247 void * GetPlayingIter;
248248 void * GetInfoIter;
249249 void * FindInfoIter;
250- long (__thiscall* Func29)(SYSTEM*);
250+ int32 (__thiscall* Func29)(SYSTEM*);
251251 void * DropBuffer;
252252 void * UpdateListenersCount;
253253 };
@@ -262,8 +262,8 @@ namespace snd
262262 struct SYSTEM_FMOD :
263263 SYSTEM
264264 {
265- static long __cdecl sub_4035E0 ();
266- bool __thiscall Init (long a1, void ** a2);
265+ static int32 __cdecl sub_4035E0 ();
266+ bool __thiscall Init (int32 a1, void ** a2);
267267 static bool __cdecl PrepareInit ();
268268 bool InitEventSystem (void * a1);
269269 // void __thiscall Update(real32 a1);
0 commit comments