Snapshot Data

From Burnout Wiki
SnapshotData
aka Snapshot Data
No Example
Resource names NicotineAssetMain.mss
NicotineAssetSurround.mss
Type ID 0xA029
Category Sound
Memory
distribution
Main Memory only
Imports Unknown
Imported by Unknown
Editor
available?
No

Snapshot data is used to store channel data. It is directly related to the Nicotine sound mixer asset.

Structures

Note: Snapshot Data resources begin with a Binary File header.

Names are from ProStreet PS2 symbols.

Nicotine::SnapshotHeader

Offset Length Type Name Description Comments
0x0 0x4 int miNumSnapshots Number of snapshots
0x4 0x4 int miNumChannels Number of channel data entries
0x8 0x8 int[2] maiPad Padding [0] 1 (mixer state?)
[1] 0x12345678

The header is followed by two chunks to be read sequentially:

  • An array of channel data of a length determined by the number of channel data entries
  • An array of snapshot data of a length determined by the number of snapshots multiplied by the number of channel data entries

A single snapshot is comprised of snapshot data for every channel. Each snapshot datum in a snapshot corresponds to a channel.

Channel data

Offset Length Type Name Description Comments
0x0 0x4 uint32_t ?
Hmmm...
Hmmm...
To do:
Likely a bit field of some kind.
Highest two bits always set.
Lower three bytes may be standalone.
0x4 0x4 uint32_t ? Channel ID
0x8 0x4 uint32_t ? Always -1

Snapshot data

Offset Length Type Name Description Comments
0x0 0x4 uint32_t ? Values include 55536, 65359, and 130332, among others
0x4 0x4 float ? Possibly volume