Snapshot Data
| SnapshotData | |
|---|---|
| aka Snapshot Data | |
| Resource names | NicotineAssetMain.mss NicotineAssetSurround.mss |
| Type ID | 0xA029 |
| Category | Sound |
| Memory distribution |
Main Memory only |
| Editor available? |
No |
Snapshot data is used to store channel data. It is directly related to the Nicotine sound mixer asset.
Structures[edit | edit source]
Note: Snapshot Data resources begin with a Binary File header.
Names are from ProStreet PS2 symbols.
Nicotine::SnapshotHeader[edit | edit source]
| 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[edit | edit source]
| Offset | Length | Type | Name | Description | Comments | ||
|---|---|---|---|---|---|---|---|
| 0x0 | 0x4 | uint32_t | ? |
|
|||
| 0x4 | 0x4 | uint32_t | ? | Channel ID | |||
| 0x8 | 0x4 | uint32_t | ? | Always -1 |
Snapshot data[edit | edit source]
| Offset | Length | Type | Name | Description | Comments |
|---|---|---|---|---|---|
| 0x0 | 0x4 | uint32_t | ? | Values include 55536, 65359, and 130332, among others | |
| 0x4 | 0x4 | float | ? | Possibly volume |