mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-31 06:59:45 +08:00
35 lines
950 B
C#
35 lines
950 B
C#
#nullable disable
|
|
namespace LibAtrac9
|
|
{
|
|
/// <summary>
|
|
/// Describes the channel mapping for an ATRAC9 stream
|
|
/// </summary>
|
|
public class ChannelConfig
|
|
{
|
|
internal ChannelConfig(params BlockType[] blockTypes)
|
|
{
|
|
BlockCount = blockTypes.Length;
|
|
BlockTypes = blockTypes;
|
|
foreach (BlockType type in blockTypes)
|
|
{
|
|
ChannelCount += Block.BlockTypeToChannelCount(type);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The number of blocks or substreams in the ATRAC9 stream
|
|
/// </summary>
|
|
public int BlockCount { get; }
|
|
|
|
/// <summary>
|
|
/// The type of each block or substream in the ATRAC9 stream
|
|
/// </summary>
|
|
public BlockType[] BlockTypes { get; }
|
|
|
|
/// <summary>
|
|
/// The number of channels in the ATRAC9 stream
|
|
/// </summary>
|
|
public int ChannelCount { get; }
|
|
}
|
|
}
|