mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools.DSP.Resampler: split classes into separate files.
This commit is contained in:
18
CUETools.DSP.Resampler/Internal/poly_fir1_t.cs
Normal file
18
CUETools.DSP.Resampler/Internal/poly_fir1_t.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace CUETools.DSP.Resampler.Internal
|
||||
{
|
||||
abstract class poly_fir1_t
|
||||
{
|
||||
internal int phase_bits;
|
||||
internal poly_fir_t pf;
|
||||
internal poly_fir1_t(int phase_bits)
|
||||
{
|
||||
this.phase_bits = phase_bits;
|
||||
}
|
||||
internal abstract void fn(stage_t input, fifo_t output);
|
||||
|
||||
public static int coef_idx(int interp_order, int fir_len, int phase_num, int coef_interp_num, int fir_coef_num)
|
||||
{
|
||||
return (fir_len) * ((interp_order) + 1) * (phase_num) + ((interp_order) + 1) * (fir_coef_num) + (interp_order - coef_interp_num);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user