mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-10 16:23:10 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
namespace SabreTools.Data.Models.PlayJ
|
|
{
|
|
/// <summary>
|
|
/// PlayJ audio file / CDS entry
|
|
/// <summary>
|
|
public sealed class AudioFile
|
|
{
|
|
/// <summary>
|
|
/// Header
|
|
/// </summary>
|
|
public AudioHeader Header { get; set; } = new AudioHeaderV1();
|
|
|
|
/// <summary>
|
|
/// Unknown block 1
|
|
/// </summary>
|
|
public UnknownBlock1 UnknownBlock1 { get; set; } = new();
|
|
|
|
#region V1 Only
|
|
|
|
/// <summary>
|
|
/// Value referred to by <see cref="AudioHeaderV1.UnknownOffset2"/>
|
|
/// </summary>
|
|
/// <remarks>Typically 0x00000000</remarks>
|
|
public uint UnknownValue2 { get; set; }
|
|
|
|
/// <summary>
|
|
/// Unknown block 3 (V1 only)
|
|
/// </summary>
|
|
public UnknownBlock3? UnknownBlock3 { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region V2 Only
|
|
|
|
/// <summary>
|
|
/// Number of data files embedded
|
|
/// </summary>
|
|
public uint DataFilesCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data files (V2 only)
|
|
/// </summary>
|
|
public DataFile[]? DataFiles { get; set; }
|
|
|
|
// After the data files is a block starting with 0x00000001
|
|
// This block then contains highly repeating data, possible audio samples?
|
|
|
|
#endregion
|
|
}
|
|
}
|