Loaded Sound Asset

From COD Engine Research
Revision as of 15:05, 26 February 2014 by Aerosoul94 (talk | contribs) (Created page with "__NOTOC__ Category:Assets Category:CoD4 Category:WaW Category:MW2 Category:MW3 Category:Ghosts == Call of Duty 4 == <source lang="cpp"> struct LoadedSo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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;
};