Error setting FMOD Studio setListenerAttributes


(Pat McDermott) #1

I’m trying to set up the spatializer and am using the following code in my Update:

        FMOD.Studio._3D_ATTRIBUTES att = new FMOD.Studio._3D_ATTRIBUTES();
        att.position.x = camera.X;
        att.position.y = camera.Y;
        att.position.z = camera.Z;
        FMOD.RESULT r = f_studio.setListenerAttributes(0, att);

but the result returns as ERR_INVALID_PARAM

Is there something I’m doing wrong here? Do I have to set something up elsewhere?


(Pat McDermott) #2

Started working - I had to set the initial position before the game started updating.