VS 2008 Environment Setup for FMod Ex
At first you have to download and install FMOD Ex Programmers API from http://www.fmod.org/index.php/download.
FMOD is free to use for free application. (have a look at the License)
After the installation is complete (can take some minutes) you can find everything you need in the directory.
The API comes in with support for 3 different languages c/c++, vb and c#.
This includes the API and the examples, sadly there’s only documentation for the C++ API but the API is easy and very equal in all supported languages.
Setting up the environment is a little bit tricky if you have just worked with C# in the last time. So I will document how to setup the environment so it’s ready to use.
- The fist step is to add the directory for the header files.
- Begin by right-clicking on the project in the solution explorer and then click on properties(at the bottom).
The Properties Windows will show up, expand Configuration Properties and then choose the point C/C++ it will look like this.
Now type the complete path to the inc folder of the API in the field right of Additional Include Directories
For me the path is
“C:\Programme\FMOD SoundSystem\FMOD Programmers API Win32\api\inc”
I’m on a German OS because of that “Programme” is used instead of “Program Files”.
- Step two add the additional libraries folder
With the Property Window left open click on Linker:
In the field next Additional Library Directories type in the path to the lib folder:
“C:\Programme\FMOD SoundSystem\FMOD Programmers API Win32\api\lib”
Now vs 2008 now where to look for additional libraries so we can add the library we need
- step three: add the library
Expand linker and click on Input:
Under additional dependencies we have to type the correct library since I want to use FMOD with all plugins compiled into the DLL. For visual studio use fmodex_vc.lib
To see what dll’s and libraries are available and when to use them have a look at the documentation.
- last step: copy the dll
The last step is simple just get the fmodex.dll from the API directory and copy it into the same folder as your executable.
Path of the .dll:
C:\Programme\FMOD SoundSystem\FMOD Programmers API Win32\api
Now we ready to use FMOD.
Have Fun.
