Loaded Sound Asset

From COD Engine Research
Revision as of 11:05, 26 February 2014 by Aerosoul94 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Call of Duty 4

struct LoadedSoundStruct
{
	int size;
	char unknown[0x10];
	char *data;
};
 
struct LoadedSound
{
	const char *name;
	LoadedSoundStruct struct1;
};

Modern Warfare 2 & 3 & Ghosts

#pragma pack(push, 4)
struct LoadedSoundStruct
{
	int size;
	char unknown1[10];
#ifdef GHOSTS
	char unknown2[2];
#endif
	short numFrames;
	int *frames;	// count = numFrames
	char *data;	// size = soundSize 
};
#pragma pack(pop)
 
struct LoadedSound 
{
	const char *name;
	LoadedSoundStruct struct1;
};

World at War

struct LoadedSoundStruct
{
	int size;
	char unknown1[0x14];
	int numFrames;
	int *frames;	// count = numFrames
	char *data;	// loaded first, size = size
};
 
struct LoadedSound
{
	const char *name;
	LoadedSoundStruct struct1;
};