Noob Question - C# Wrapper

Hi,

Trying to find an alternative audio management system for a Monogame project (Monogame’s built in audio is the barest of barebones you can get) and FMOD came highly recommended but I’m having trouble getting started.

I’ve copied the ‘fmod.cs’ file into my project folder along with the ‘fmod.dll’ and that’s as far as I’ve been able to get.

The .cs file is giving me 21 compile errors for missing type or namespace, all ‘DSP_’ names, I’m assuming that’s because it’s not reading the dll.

Attempting to add the dll as a reference gives me a ‘reference is invalid or unsupported’ error.

I’m using Visual Studio 2022 in case that affects things.

Any help or suggestions would be appreciated.

Thanks.

Hi,

You need to copy everything form the api/core/inc and the api/core/lib files to the Program.cs dir:


And make sure you mark the fmod.dll as Copy always in its properties option:
.
If you need an outline of initializing the FMOD system, you can reference any of the examples scripts included with the FMOD engine download: C:\Program Files (x86)\FMOD SoundSystem\FMOD Studio API Windows\api\core\examples

Hope this helps!

Thank you, that was exactly what I needed!

1 Like