OpenShot Audio Library | OpenShotAudio: juce_FFT.h Source File

OpenShot Audio Library | OpenShotAudio 0.4.0

Loading...
Searching...
No Matches
juce_FFT.h
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce::dsp
27{
28
42 class JUCE_API FFT
43{
44public:
45 //==============================================================================
49 FFT (int order);
50
52 FFT (FFT&&) noexcept;
53
55 FFT& operator= (FFT&&) noexcept;
56
58 ~FFT();
59
60 //==============================================================================
64 void perform (const Complex<float>* input, Complex<float>* output, bool inverse) const noexcept;
65
85 void performRealOnlyForwardTransform (float* inputOutputData,
86 bool onlyCalculateNonNegativeFrequencies = false) const noexcept;
87
95 void performRealOnlyInverseTransform (float* inputOutputData) const noexcept;
96
105 void performFrequencyOnlyForwardTransform (float* inputOutputData,
106 bool onlyCalculateNonNegativeFrequencies = false) const noexcept;
107
109 int getSize() const noexcept { return size; }
110
111 //==============================================================================
112 #ifndef DOXYGEN
113 /* internal */
114 struct Instance;
115 template <typename> struct EngineImpl;
116 #endif
117
118private:
119 //==============================================================================
120 struct Engine;
121
122 std::unique_ptr<Instance> engine;
123 int size;
124
125 //==============================================================================
126 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FFT)
127};
128
129} // namespace juce::dsp
juce::dsp::FFT
Definition juce_FFT.h:43
juce::dsp::FFT::FFT
FFT(FFT &&) noexcept