mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools.Codecs.ALAC: split classes into separate files.
This commit is contained in:
29
CUETools.Codecs.ALAC/ALACSubframeInfo.cs
Normal file
29
CUETools.Codecs.ALAC/ALACSubframeInfo.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace CUETools.Codecs.ALAC
|
||||
{
|
||||
unsafe class ALACSubframeInfo
|
||||
{
|
||||
public ALACSubframe best;
|
||||
public int* samples;
|
||||
public uint done_fixed;
|
||||
public LpcContext[] lpc_ctx;
|
||||
|
||||
public ALACSubframeInfo()
|
||||
{
|
||||
best = new ALACSubframe();
|
||||
lpc_ctx = new LpcContext[Alac.MAX_LPC_WINDOWS];
|
||||
for (int i = 0; i < Alac.MAX_LPC_WINDOWS; i++)
|
||||
lpc_ctx[i] = new LpcContext();
|
||||
}
|
||||
|
||||
public void Init(int* s, int* r)
|
||||
{
|
||||
samples = s;
|
||||
best.residual = r;
|
||||
best.size = AudioSamples.UINT32_MAX;
|
||||
best.order = 0;
|
||||
for (int iWindow = 0; iWindow < Alac.MAX_LPC_WINDOWS; iWindow++)
|
||||
lpc_ctx[iWindow].Reset();
|
||||
done_fixed = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user