View difference between Paste ID: LBEmbTYZ and adW8w9Qn
SHOW: | | - or go back to the newest paste.
1-
bool feed(float x, Complex!float[] fftData)
1+
    bool feed(float x, Complex!float[] fftData)
2
    {    
3
        void processSegment(float[] segment)
4
        {
5-
            fftData.length = _fftSize;
5+
            fftData.length = _fftSize; // we do need the delegate context here
6
7
            // do stuff with segment and fftData
8
        }
9
10
        // _analyzer.feed takes a void delegate(float[]) as parameter
11
        // will this line allocate
12
        return _analyzer.feed(x, &processSegment);
13
    }