openshot-audio  0.1.6
juce_FFT.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission is granted to use this software under the terms of either:
8  a) the GPL v2 (or any later version)
9  b) the Affero GPL v3
10 
11  Details of these licenses can be found at: www.gnu.org/licenses
12 
13  JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15  A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17  ------------------------------------------------------------------------------
18 
19  To release a closed-source product which uses JUCE, commercial licenses are
20  available: visit www.juce.com for more information.
21 
22  ==============================================================================
23 */
24 
37 {
38 public:
42  FFT (int order, bool isInverse);
43 
45  ~FFT();
46 
48  struct Complex
49  {
50  float r;
51  float i;
52  };
53 
59  void perform (const Complex* input, Complex* output) const noexcept;
60 
68  void performRealOnlyForwardTransform (float* inputOutputData) const noexcept;
69 
76  void performRealOnlyInverseTransform (float* inputOutputData) const noexcept;
77 
81  void performFrequencyOnlyForwardTransform (float* inputOutputData) const noexcept;
82 
84  int getSize() const noexcept { return size; }
85 
86 private:
87  struct FFTConfig;
89  const int size;
90 
92 };
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_FFT.h:48
#define JUCE_API
Definition: juce_StandardHeader.h:139
float i
Definition: juce_FFT.h:51
Definition: juce_FFT.cpp:33
Definition: juce_FFT.h:36
int getSize() const noexcept
Definition: juce_FFT.h:84
Definition: juce_ScopedPointer.h:70
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
Definition: juce_PlatformDefs.h:198
float r
Definition: juce_FFT.h:50