EvilEngine/SGRP: Difference between revisions

m
no edit summary
Battlepedia>Igorseabra4
(Created page with "{{AssetInfobox |subtitle=Sound Group |type=Object |objectid=0x4A |games=The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer}} ==Format== SGRP are...")
 
mNo edit summary
 
(14 intermediate revisions by 4 users not shown)
Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|SGRP}}<nowiki/>
|subtitle=Sound Group
{{#vardefine:name|Sound Group}}<nowiki/>
|type=[[Object]]
{{#vardefine:type|[[Base]]}}<nowiki/>
|objectid=0x4A
{{#vardefine:basetype|0x4A}}<nowiki/>
|games=The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer}}
{{#vardefine:games|TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
 
==Format==
SGRP are [[Object AssetBase|objectbase assets]], so they start with their 0x8 byte header, then are followed by:
 
<source lang=cpp>
struct xSndGroupHeader : xBaseAsset
{
uint32 uPlayedMask;
uint8 uInfoCount;
uint8 uSetBits;
int8 nMaxPlays;
uint8 uPriority;
uint8 uFlags;
uint8 eSoundCategory;
uint8 ePlayRule;
uint8 uInfoPad0;
float32 fInnerRadius;
float32 fOuterRadius;
int8* pszGroupName;
};
</source>
 
===xSndGroupHeader===
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x8 || byteuint32 || '''amountOfSoundsuPlayedMask''' || amountAlways of sound entries0
|-
| 0x90xC || byteuint8 || '''unknownuInfoCount''' || usuallyAmount 0x00of sound entries
|-
| 0xA0xD || byteuint8 || '''unknownuSetBits''' || usually 0x300x00
|-
| 0xB0xE || byteint8 || '''unknownuMaxPlays''' || usually 0x800x30
|-
| 0xC0xF || byteuint8 || '''unknownuPriority''' || usually 0x000x80
|-
| 0xD0x10 || byteuint8 || '''unknownuFlags''' || usually 0x00
|-
| 0xE0x11 || byteuint8 || '''unknowneSoundCategory''' || usually01 0x00- PlayGlobally
|-
| 0xF0x12 || byteuint8 || '''unknownePlayRule''' || usually 0x420x00
|-
| 0x140x13 || floatuint8 || '''unknownuInfoPad0''' || usually 8.00x42
|-
| 0x180x14 || floatfloat32 || '''unknownfInnerRadius''' || usually 258.0
|-
| 0x1C0x18 || ?float32 || '''unknownfOuterRadius''' || usually 25.0
|-
| 0x1C || int8* || '''pszGroupName''' || Unknown AssetID
| 0x20 || SoundEntry[amountOfSounds] || || Sound reference entries
|-
| 0x20 || SoundEntryxSndGroupInfo[amountOfSoundsuInfoCount] || || Sound reference entries
|-
! colspan="4" | Events
Line 40 ⟶ 66:
|}
 
 
===Sound Entry===
===xSndGroupInfo===
<source lang=cpp>
struct xSndGroupInfo
{
uint32 uSoundNameHash;
float32 fVolume;
float32 fMinPitchMult;
float32 fMaxPitchMult;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x0 || [[Asset IDAssetID]] || '''soundAssetIDuSoundNameHash''' || [[Sound Format|SND/SNDS]]
|-
| 0x4 || float || '''unknownfVolume''' || usually between 0-1
|-
| 0x8 || ?float || '''unknownfMinPitchMult''' || usually 0
|-
| 0xC || ? || '''unknown''' || usually 0
|-
| 0xC || ?float || '''unknownfMaxPitchMult''' || usually 0
|}
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]
2,079

edits