Files
SabreTools.Models/PlayJ/AudioFile.cs

50 lines
1.2 KiB
C#
Raw Permalink Normal View History

2023-09-04 00:12:49 -04:00
namespace SabreTools.Models.PlayJ
2023-09-04 00:11:04 -04:00
{
/// <summary>
/// PlayJ audio file / CDS entry
/// <summary>
public sealed class AudioFile
{
/// <summary>
/// Header
/// </summary>
2023-09-04 21:14:41 -04:00
public AudioHeader? Header { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Unknown block 1
/// </summary>
2023-09-04 21:14:41 -04:00
public UnknownBlock1? UnknownBlock1 { get; set; }
2023-09-04 00:11:04 -04:00
#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>
2023-09-04 21:14:41 -04:00
public UnknownBlock3? UnknownBlock3 { get; set; }
2023-09-04 00:11:04 -04:00
#endregion
#region V2 Only
/// <summary>
/// Number of data files embedded
/// </summary>
public uint DataFilesCount { get; set; }
/// <summary>
/// Data files (V2 only)
/// </summary>
2023-09-10 20:47:25 -04:00
public DataFile?[]? DataFiles { get; set; }
2023-09-04 00:11:04 -04:00
// After the data files is a block starting with 0x00000001
// This block then contains highly repeating data, possible audio samples?
#endregion
}
}