javazoom.jl.decoder.SynthesisFilter.SynthesisFilter C# (CSharp) Method

SynthesisFilter() public method

Contructor. The scalefactor scales the calculated float pcm samples to short values (raw pcm samples are in [-1.0, 1.0], if no violations occur).
public SynthesisFilter ( int channelnumber, float factor, float eq0 ) : System
channelnumber int
factor float
eq0 float
return System
        public SynthesisFilter(int channelnumber, float factor, float[] eq0)
        {
            InitBlock();
            if (d == null)
            {
                d = d_data; // load_d();
                d16 = splitArray(d, 16);
            }

            v1 = new float[512];
            v2 = new float[512];
            samples = new float[32];
            channel = channelnumber;
            scalefactor = factor;
            EQ = eq;
            //setQuality(HIGH_QUALITY);

            reset();
        }