mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-15 23:31:07 +00:00
* [GUI] Added Atrac9 audio decoder and improved GUI with audio preview and controller support * fix: package.lock.json for SharpEmu.CLI to match the other projects * fix: packages.lock.json file to include new dependencies for GUI improvements * rollForward: "disable"
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; }
|
|
}
|
|
}
|