Hello, I apologize if this is a repeat, but I couldn’t find anything concerning this in the forum.
I am studying the useplugins example project in Mac OS X Leopard, Xcode. I just downloaded the latest stable release of Fmod Ex.
The problem: When running, getNumPlugins, doesn’t seem to properly scan the pluginPath. The only two plugins which are returned are the Codec plugins:
1 – FMOD Raw Codec 2 – FMOD User Reader Codec
There are no DSP or Output plugins returned. The program, obviously, immediately crashes because when requested for an output plugin, there aren’t any:
FMOD error! (65) A requested output, dsp unit type or codec was not available.
Has anybody ran into this problem? Is it a platform issue?
- mkelvin asked 9 years ago
The problem you are getting is most likely due to when you debug an application from XCode it executes it from the build directory. Since you are now a couple of levels deeper in directory hierarchy e.g. "builds/debug", the relative path to the plugins directory is now incorrect.
You could change the path in code to account for this, or copy the plugins directory as a post build operation so the relative path is correct.
When trying with an absolute path:
"/Developer/FMOD Programmers API/api/plugins"
It works. The sad thing is that I already tried this… but the first time I made a typo and used the following extra slash by accident:
Don’t know what I was smoking… Thanks!
- mkelvin answered 9 years ago
Please login first to submit.