Exemplo n.º 1
0
        public FftResource(string tag, int bins, bool isHalf)
        {
            //Set
            this.tag    = tag;
            this.bins   = bins;
            this.isHalf = isHalf;

            //Create
            fft    = new FFTGenerator(bins, isHalf);
            buffer = UnsafeBuffer.Create(bins, out bufferPtr);
        }
Exemplo n.º 2
0
 public FFTViewWrapper(IPowerView view, int fftWidth, bool isHalf)
 {
     this.view  = view;
     fft        = new FFTGenerator(fftWidth, isHalf);
     smoothener = new FFTSmoothener(fft, attack, decay);
 }