# FMOD\_ERR\_INVALID\_PARAM when calling FMOD::Studio::System::SetListenerAttributes

**URL:** https://qa.fmod.com/t/fmod-err-invalid-param-when-calling-fmod-setlistenerattributes/20845
**Category:** FMOD Engine
**Created:** [November 6, 2023, 12:03am UTC](https://qa.fmod.com/t/fmod-err-invalid-param-when-calling-fmod-setlistenerattributes/20845 "2023-11-06T00:03:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![soundasleep](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@soundasleep](https://qa.fmod.com/u/soundasleep)
#### Post date: [November 6, 2023, 12:03am UTC](https://qa.fmod.com/t/fmod-err-invalid-param-when-calling-fmod-setlistenerattributes/20845/1 "2023-11-06T00:03:23Z")

</div>

I’m trying to integrate FMOD into my libgdx game using lwjgl’s FMOD bindings (Currently 2.02.16) and I very occasionally get `FMOD_ERR_INVALID_PARAM` when calling `FMOD_Studio_System_SetListenerAttributes`.

As far as I know the parameters are being set correctly:

pos=(-26.247597,-10.350963,-4.0)  
vel=(0.0,0.0,0.0)  
fwd=(0.0,0.0,-1.0)  
up=(0.0,1.0,0.0)  
attenuation=null

I’ve posted a bug report in the lwjgl forums [Sometimes FMOD returns FMOD\_ERR\_INVALID\_PARAM when window does not have focus on Windows · Issue #940 · LWJGL/lwjgl3 · GitHub](https://github.com/LWJGL/lwjgl3/issues/940) but is there any way to get more information about what parameter is causing the FMOD\_ERR\_INVALID\_PARAM, and why?

---

<div class="post-metadata">

### Author: ![soundasleep](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@soundasleep](https://qa.fmod.com/u/soundasleep)
#### Post date: [November 6, 2023, 12:54am UTC](https://qa.fmod.com/t/fmod-err-invalid-param-when-calling-fmod-setlistenerattributes/20845/2 "2023-11-06T00:54:48Z")

</div>

I think I worked it out… a misbehaving int was being used for `listenerID` so sometimes I was trying to set the properties for listenerID = 1 when I only have a single listener. (see `FMOD_Studio_System_GetNumListeners`)
