Ejemplo n.º 1
0
        public void Setup()
        {
            FFTWindow = 1 << FFTWindowLog;
            if (core == null)
            {
                core = new ComputeProgram(computeShader);
            }

            core.Initialize(FFTWindowLog, filter, multisamples, windowParam);
            if (core.audioClip != audioClip)
            {
                core.LoadAudio(audioClip);
            }

            SetMode(ref core.mode, calculateLoudness, energyCorrection);
            chunks             = core.chunks;
            core.resolveFactor = deconvolution;
        }