#nullable disable namespace LibAtrac9 { /// /// Describes the channel mapping for an ATRAC9 stream /// public class ChannelConfig { internal ChannelConfig(params BlockType[] blockTypes) { BlockCount = blockTypes.Length; BlockTypes = blockTypes; foreach (BlockType type in blockTypes) { ChannelCount += Block.BlockTypeToChannelCount(type); } } /// /// The number of blocks or substreams in the ATRAC9 stream /// public int BlockCount { get; } /// /// The type of each block or substream in the ATRAC9 stream /// public BlockType[] BlockTypes { get; } /// /// The number of channels in the ATRAC9 stream /// public int ChannelCount { get; } } }