Giter Club home page Giter Club logo

Comments (2)

stevengj avatar stevengj commented on June 19, 2024

I would edit the code (or use a debugger) to print the value of nDftSamples in snd2fftw's main.c when it prints out ERR_FAIL_TO_INITIALIZE_PLAN (see the code); that should help you diagnose the problem. Basically, it must be passing invalid arguments to fftw_plan_dft_r2c_1d, and you'll need to debug that.

However, this really sounds like a bug in snd2fftw (or an error in how you are using it) rather than a bug in FFTW, so I'm going to close this issue.

from fftw3.

rossry avatar rossry commented on June 19, 2024

I understand that this is a bug in snd2fftw rather than fftw, but this is the first Google result for "Fail to initialize FFTW plan.", so I figured I'd update the thread with the actual fix:

At lines 404 and 532 of main.c, snd2fftw calls fftw_plan_dft_r2c_1d with flags=FFTW_FORWARD, which isn't a valid flag for fftw_plan_dtf_*. The easiest fix is to pass FFTW_MEASURE (or FFTW_ESTIMATE) instead.

(This worked for me, with FFTW 3.3.8 installed on Linux, after making a few separate Windows->Linux portability patches.)

I'll submit a request for a fix to the author, but the source hasn't seen updates in >5 years, so future users may just have to manually patch themselves.

from fftw3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.