From e78bb8cb41a6e0c27032b954ff54a3f2fadfea0f Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 14 Jan 2023 14:19:38 -0800 Subject: [PATCH] Add PLJ header format notes --- BurnOutSharp/FileType/PLJ.cs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/BurnOutSharp/FileType/PLJ.cs b/BurnOutSharp/FileType/PLJ.cs index 9c60c491..fd34a43c 100644 --- a/BurnOutSharp/FileType/PLJ.cs +++ b/BurnOutSharp/FileType/PLJ.cs @@ -37,6 +37,36 @@ namespace BurnOutSharp.FileType AppendToDictionary(protections, file, "PlayJ Audio File"); return protections; } + + // Header Layout + // ------------------------------------------------------------------------------ + // 0x00 Signature UInt32 + // 0x04 Version? UInt32 + // 0x08 UNKNOWN byte[34] + // 0x2A Track Title Length UInt16 + // 0x2C Track Title String + // 0x2C+TTL Track Artist Length UInt16 + // 0x2E+TTL Track Artist String + // 0x2E+TTL+TAL Album Length UInt16 + // 0x30+TTL+TAL Album String + // 0x30+TTL+TAL+AL Songwriter Length UInt16 + // 0x32+TTL+TAL+AL Songwriter String + // 0x32+TTL+TAL+AL+AAL Copyright Owner Length UInt16 + // 0x34+TTL+TAL+AL+AAL Copyright Owner String + // 0x34+TTL+TAL+AL+AAL+COL Distributor Length UInt16 + // 0x36+TTL+TAL+AL+AAL+COL Distributor String + // + // The following samples also have a "Credits" section after the distributor, same format + // - golden_empire.plj + // - i_want_to_take_you_higher.plj + // + // 0x36+TTL+TAL+AL+AAL+COL+DL Metadata? Length UInt32 + // 0x38+TTL+TAL+AL+AAL+COL+DL Metadata? byte[DL] + // Most samples hae repeating or semi-repeating values here, roughly UInt32-sized + // 0x38+TTL+TAL+AL+AAL+COL+DL+ML Version? UInt32 + // Most of the samples have 0x00000000 + // lady.plj has 0x00000002 and references "ad006376_5.dat" after, version 2? + // nature_soundscape_v.plj has 0x00C88028 } catch (Exception ex) {