# Top down 2D spatial sounds

**URL:** https://qa.fmod.com/t/top-down-2d-spatial-sounds/21552
**Category:** FMOD Studio
**Tags:** cpp
**Created:** [April 27, 2024, 4:18am UTC](https://qa.fmod.com/t/top-down-2d-spatial-sounds/21552 "2024-04-27T04:18:22Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tlconflict](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@tlconflict](https://qa.fmod.com/u/tlconflict)
#### Post date: [April 29, 2024, 10:22pm UTC](https://qa.fmod.com/t/top-down-2d-spatial-sounds/21552/4 "2024-04-29T22:22:10Z")

</div>

```rs
            FMOD_Studio_System_SetListenerAttributes(
                self.studio_sys,
                0,
                &listener,
                &FMOD_VECTOR::default(),
            );

```

The problem was right infront of me the whole time 🤣.

> Passing NULL for `attenuationposition` will result in the listener only using the position in `attributes`.

I did not pass NULL… I passed `&FMOD_VECTOR::default()` which is a stack pointer to a zeroed out vector. It works now, thanks guys

[https://www.fmod.com/docs/2.02/api/studio-api-system.html#studio\_system\_setlistenerattributes](https://www.fmod.com/docs/2.02/api/studio-api-system.html#studio_system_setlistenerattributes)  
When would one want to have the attenuation position not be the same as the listener position?

---

_[View the full topic](https://qa.fmod.com/t/top-down-2d-spatial-sounds/21552)._
