Hi there,
I’m pretty new to FMOD, so I apologize if this is incorrect.
The VS2012 MDA is triggering a pInvokeStackImbalance whenever I call ChannelGroup.addGroup in C#. It looks like it might be a bug with the C# wrapper, with the pInvoke signature not matching the DLLs.
The MDA exception no longer triggers if I change the DLLImport to include a bool and an out ref for the dsp connection. I’m unfamiliar with audio programming, so I’m not sure what to do with the dsp reference (if anything at all). The code below works:
private static extern RESULT FMOD_ChannelGroup_AddGroup(IntPtr channelgroup, IntPtr group, bool propagatedspclock, out IntPtr dspConnection);