mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Flake: use new window functions (partial_tukey, punchout_tukey).
This commit is contained in:
@@ -7,6 +7,7 @@ namespace CUETools.Codecs.FLAKE
|
||||
public FlacSubframeInfo()
|
||||
{
|
||||
best = new FlacSubframe();
|
||||
sf = new LpcSubframeInfo();
|
||||
lpc_ctx = new LpcContext[lpc.MAX_LPC_WINDOWS];
|
||||
for (int i = 0; i < lpc.MAX_LPC_WINDOWS; i++)
|
||||
lpc_ctx[i] = new LpcContext();
|
||||
@@ -22,8 +23,10 @@ namespace CUETools.Codecs.FLAKE
|
||||
best.residual = r;
|
||||
best.type = SubframeType.Verbatim;
|
||||
best.size = AudioSamples.UINT32_MAX;
|
||||
sf.Reset();
|
||||
for (int iWindow = 0; iWindow < lpc.MAX_LPC_WINDOWS; iWindow++)
|
||||
lpc_ctx[iWindow].Reset();
|
||||
//sf.obits = obits;
|
||||
done_fixed = 0;
|
||||
}
|
||||
|
||||
@@ -33,5 +36,6 @@ namespace CUETools.Codecs.FLAKE
|
||||
public int* samples;
|
||||
public uint done_fixed;
|
||||
public LpcContext[] lpc_ctx;
|
||||
public LpcSubframeInfo sf;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user