mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools.Flake: better use of new window functions
This commit is contained in:
@@ -8,6 +8,7 @@ namespace CUETools.Codecs.FLAKE
|
||||
{
|
||||
best = new FlacSubframe();
|
||||
sf = new LpcSubframeInfo();
|
||||
best_fixed = new ulong[5];
|
||||
lpc_ctx = new LpcContext[lpc.MAX_LPC_WINDOWS];
|
||||
for (int i = 0; i < lpc.MAX_LPC_WINDOWS; i++)
|
||||
lpc_ctx[i] = new LpcContext();
|
||||
@@ -20,6 +21,8 @@ namespace CUETools.Codecs.FLAKE
|
||||
samples = s;
|
||||
obits = bps - w;
|
||||
wbits = w;
|
||||
for (int o = 0; o <= 4; o++)
|
||||
best_fixed[o] = 0;
|
||||
best.residual = r;
|
||||
best.type = SubframeType.Verbatim;
|
||||
best.size = AudioSamples.UINT32_MAX;
|
||||
@@ -35,6 +38,7 @@ namespace CUETools.Codecs.FLAKE
|
||||
public int wbits;
|
||||
public int* samples;
|
||||
public uint done_fixed;
|
||||
public ulong[] best_fixed;
|
||||
public LpcContext[] lpc_ctx;
|
||||
public LpcSubframeInfo sf;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user