FastLED 3.9.15
Loading...
Searching...
No Matches

◆ get_or_create()

FFTImpl & fl::FFT::get_or_create ( const FFT_Args & args)
private

Definition at line 51 of file fft.cpp.

51 {
52 fl::shared_ptr<FFTImpl> *val = mMap->find_value(args);
53 if (val) {
54 // we have it.
55 return **val;
56 }
57 // else we have to make a new one.
58 fl::shared_ptr<FFTImpl> fft = fl::make_shared<FFTImpl>(args);
59 (*mMap)[args] = fft;
60 return *fft;
61}
AudioAnalyzeFFT1024 fft
scoped_ptr< HashMap > mMap
Definition fft.h:122
shared_ptr< T > make_shared(Args &&... args)
Definition shared_ptr.h:348
corkscrew_args args
Definition old.h:150

References args, fft, fl::make_shared(), and mMap.

+ Here is the call graph for this function: