Fill out more PLJ notes before modelling

This commit is contained in:
Matt Nadareski
2023-01-14 19:47:24 -08:00
parent e78bb8cb41
commit e76bc70ec6

View File

@@ -38,35 +38,90 @@ namespace BurnOutSharp.FileType
return protections;
}
// Header Layout
// Header Layout (V1)
// ------------------------------------------------------------------------------
// 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
// 0x04 Version UInt32 [0x00000000]
// 0x08 Track ID UInt32 [Always 0xFFFFFFFF in CD titles]
// 0x0C Metadata? Offset UInt32
// 0x10 Unknown Offset UInt32
// 0x14 Unknown Offset UInt32
// 0x18 Unknown UInt32 [Always 0x00000001]
// 0x1C Unknown UInt32 [Always 0x00000001 in download titles]
// 0x20 Year UInt32 [0xFFFFFFFF if unset]
// 0x24 Track Number Byte
// 0x25 Subgenre Byte
// 0x26 Duration in Seconds UInt32
// 0x2A Track Length UInt16
// 0x2C Track String
// 0x2C+TL Artist Length UInt16
// 0x2E+TL Artist String
// 0x2E+TL+TAL Album Length UInt16
// 0x30+TL+TAL Album String
// 0x30+TL+TAL+AL Writer Length UInt16
// 0x32+TL+TAL+AL Writer String
// 0x32+TL+TAL+AL+WL Publisher Length UInt16
// 0x34+TL+TAL+AL+WL Publisher String
// 0x34+TL+TAL+AL+WL+PL Label Length UInt16
// 0x36+TL+TAL+AL+WL+PL Label String
//
// The following samples also have a "Credits" section after the distributor, same format
// The following samples also have a "Comments" 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]
// 0x36+TL+TAL+AL+WL+PL+LL Metadata? Length UInt32
// 0x38+TL+TAL+AL+WL+PL+LL Metadata? byte[ML]
// Most samples hae repeating or semi-repeating values here, roughly UInt32-sized
// 0x38+TTL+TAL+AL+AAL+COL+DL+ML Version? UInt32
// 0x38+TL+TAL+AL+WL+PL+LL+ML Extras? UInt32
// Most of the samples have 0x00000000
// lady.plj has 0x00000002 and references "ad006376_5.dat" after, version 2?
// lady.plj has 0x00000002 and references "ad006376_5.dat" after
// nature_soundscape_v.plj has 0x00C88028
// Header Layout (V2)
// ------------------------------------------------------------------------------
// 0x00 Signature UInt32
// 0x04 Version UInt32 [0x0000000A]
// 0x08 UNKNOWN byte[36]
// 0x2A Track Length UInt16
// 0x2C Track String
// 0x2C+TL Artist Length UInt16
// 0x2E+TL Artist String
// 0x2E+TL+TAL Album Length UInt16
// 0x30+TL+TAL Album String
// 0x30+TL+TAL+AL Writer Length UInt16
// 0x32+TL+TAL+AL Writer String
// 0x32+TL+TAL+AL+WL Publisher Length UInt16
// 0x34+TL+TAL+AL+WL Publisher String
// 0x34+TL+TAL+AL+WL+PL Label Length UInt16
// 0x36+TL+TAL+AL+WL+PL Label String
// Known Genre IDs (http://www.playj.com/static/genreindex_XX.html)
// -----------------------------------------------
// 1 - Blues/Folk/Country
// 5 - Jazz
// 10 - Reggae
// 12 - Classical
// 13 - Electronic
// 15 - Pop/Rock
// 16 - World
// 17 - Urban
// 18 - Latin
// 20 - Soundtrack/Other
// 21 - New Age
// 22 - Spiritual
// 23 - Sway & Tech
// 24 - Jam Bands
// 25 - Comedy
// 26 - Brazilian
// Known Subgenre IDs (http://playj.com/static/subgenre_XX.html)
// -----------------------------------------------
// 2 - Blues/Folk/Country > Blues (Modern/Electric)
// 3 - Blues/Folk/Country > Blues (Modern/Acoustic)
// 4 - Blues/Folk/Country > Blues (Traditional)
// 5 - Blues/Folk/Country > Folk (Traditional)
// 6 - Blues/Folk/Country > Folk (Contemporary)
// TODO: When converting to enum, fill in the rest
}
catch (Exception ex)
{