# Error setting FMOD Studio setListenerAttributes

**URL:** https://qa.fmod.com/t/error-setting-fmod-studio-setlistenerattributes/13517
**Category:** FMOD Studio
**Created:** [November 4, 2017, 8:13pm UTC](https://qa.fmod.com/t/error-setting-fmod-studio-setlistenerattributes/13517 "2017-11-04T20:13:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DangerMcD](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@DangerMcD](https://qa.fmod.com/u/DangerMcD)
#### Post date: [November 4, 2017, 8:13pm UTC](https://qa.fmod.com/t/error-setting-fmod-studio-setlistenerattributes/13517/1 "2017-11-04T20:13:20Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![DangerMcD](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@DangerMcD](https://qa.fmod.com/u/DangerMcD)
#### Post date: [November 4, 2017, 10:36pm UTC](https://qa.fmod.com/t/error-setting-fmod-studio-setlistenerattributes/13517/2 "2017-11-04T22:36:52Z")

</div>

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