Browse Source

Make it easier to use a static version of fftw in the dsp module

tags/2021-05-28
hogliux 7 years ago
parent
commit
a4ffb41bff
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      modules/juce_dsp/frequency/juce_FFT.cpp

+ 14
- 0
modules/juce_dsp/frequency/juce_FFT.cpp View File

@@ -530,6 +530,20 @@ FFT::EngineImpl<AppleFFT> appleFFT;
//==============================================================================
//==============================================================================
#if JUCE_DSP_USE_SHARED_FFTW || JUCE_DSP_USE_STATIC_FFTW
#if JUCE_DSP_USE_STATIC_FFTW
extern "C"
{
void* fftwf_plan_dft_1d (int, void*, void*, int, int);
void* fftwf_plan_dft_r2c_1d (int, void*, void*, int);
void* fftwf_plan_dft_c2r_1d (int, void*, void*, int);
void fftwf_destroy_plan (void*);
void fftwf_execute_dft (void*, void*, void*);
void fftwf_execute_dft_r2c (void*, void*, void*);
void fftwf_execute_dft_c2r (void*, void*, void*);
}
#endif
struct FFTWImpl : public FFT::Instance
{
#if JUCE_DSP_USE_STATIC_FFTW


Loading…
Cancel
Save