2
Fork 0
Code Activity
Var Dump:
dumpVar: only available in dev mode
Mailing List
010-templates/dt_wwise_event.bt

68 lines
No EOL
2.2 KiB
Text

//------------------------------------------------
//--- 010 Editor v12.0.1 Binary Template
//
// File: dt_wwise_event.bt
// Authors: Lucas Schwiderski
// Version:
// Purpose:
// Category: Darktide
// File Mask: *.wwise_event
// ID Bytes:
// History:
//------------------------------------------------
/***********************************************************************
File Definition:
***********************************************************************/
uint32 version <format=hex>;
Assert(version == 0x1b);
uint32 length;
// A section of values that don't belong the actual Wwise bank
struct {
uint32 unknown1;
Assert(unknown1 == 0x0);
// Matches the file itself
uint64 this_file <format=hex>;
uint32 unknown2;
Assert(unknown2 == 0x40);
uint32 unknown3;
Assert(unknown3 == 0x0);
// The following hash-like values will probably define some of these values:
// - name of the event
// - Wwise bus the event runs on
// Corresponds to the `id` value of a HIRC object of type "event" later on in the file
uint32 hirc_event_id <format=hex>;
// No particularly clear value.
// Sometimes when interpreted as `float`, it produces whole numbers.
// Sometimes, it's very close to `0xFFFFFFFF`.
uint32 unknown4;
// Following two usually look like hashes.
// Also often reasonably looking floats close to `1`. Could be something like volume.
// Would still fit with it sometimes showing up elsewhere in a `.wwise_bank`: It's not unreasonable
// for the bnk to have volume values as well.
// In at least one instance, shows up in `MotionBus`/`MotionFX` sections in a `.wwise_bank`.
uint32 unknown5 <format=hex, comment="Looks like a short hash">;
// At least in one instance, this was identical with `unknown6`
uint32 unknown6 <format=hex, comment="Looks like a short hash">;
uint32 unknown7;
Assert(unknown7 == 0x0 || unknown7 == 0x1);
uint32 unknown8;
Assert(unknown8 == 0x0 || unknown8 == 0x1);
uint32 unknown9;
Assert(unknown9 == 0x0);
uint32 unknown10;
Assert(unknown10 == 0x0);
} header;
struct bnk
{
#include "bnk.bt";
} wwise_bank <open=true>;