I am creating a custom dsp. When my create function is called the instance member of FMOD_DSP_STATE does not point to a valid instance. It is in fact 0. I need to access the userdata in my create function. How do i do this?

I’m using FMOD 4.02.08 w/ visual studio 2003

Simplified test case:

include”fmod/fmod.h”

include”fmod/fmod.hpp”

include<assert.h>

include<string.h>

//note: assert used for error checking out of lazyness since this is a bug test case
//this is only valid in debug