using System;
// ReSharper disable once CheckNamespace
namespace NAudio.Wave
{
///
/// https://tech.ebu.ch/docs/tech/tech3285.pdf
///
public class BextChunkInfo
{
///
/// Constructs a new BextChunkInfo
///
public BextChunkInfo()
{
//UniqueMaterialIdentifier = Guid.NewGuid().ToString();
Reserved = new byte[190];
}
///
/// Description (max 256 chars)
///
public string Description { get; set; }
///
/// Originator (max 32 chars)
///
public string Originator { get; set; }
///
/// Originator Reference (max 32 chars)
///
public string OriginatorReference { get; set; }
///
/// Originator Date Time
///
public DateTime OriginationDateTime { get; set; }
///
/// Origination Date as string
///
public string OriginationDate => OriginationDateTime.ToString("yyyy-MM-dd");
///
/// Origination as time
///
public string OriginationTime => OriginationDateTime.ToString("HH:mm:ss");
///
/// Time reference (first sample count since midnight)
///
public long TimeReference { get; set; }
///
/// version 2 has loudness stuff which we don't know so using version 1
///
public ushort Version => 1;
///
/// 64 bytes http://en.wikipedia.org/wiki/UMID
///
public string UniqueMaterialIdentifier { get; set; }
///
/// for version 2 = 180 bytes (10 before are loudness values), using version 1 = 190 bytes
///
public byte[] Reserved { get; }
///
/// Coding history arbitrary length string at end of structure
/// http://www.ebu.ch/CMSimages/fr/tec_text_r98-1999_tcm7-4709.pdf
/// A=PCM,F=48000,W=16,M=stereo,T=original,CR/LF
///
public string CodingHistory { get; set; }
}
}