mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-26 04:39:17 +08:00
79a7437cd8
* [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"
22 lines
510 B
C#
22 lines
510 B
C#
#nullable disable
|
|
namespace LibAtrac9
|
|
{
|
|
internal class Frame
|
|
{
|
|
public Atrac9Config Config { get; }
|
|
public int FrameIndex { get; set; }
|
|
public Block[] Blocks { get; }
|
|
|
|
public Frame(Atrac9Config config)
|
|
{
|
|
Config = config;
|
|
Blocks = new Block[config.ChannelConfig.BlockCount];
|
|
|
|
for (int i = 0; i < config.ChannelConfig.BlockCount; i++)
|
|
{
|
|
Blocks[i] = new Block(this, i);
|
|
}
|
|
}
|
|
}
|
|
}
|