# 3D audio doesn't work as intended

**URL:** <https://qa.fmod.com/t/3d-audio-doesnt-work-as-intended/18035>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [November 30, 2021, 1:05pm UTC](https://qa.fmod.com/t/3d-audio-doesnt-work-as-intended/18035 "2021-11-30T13:05:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juhrell](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@juhrell](https://qa.fmod.com/u/juhrell)\
**Post date:** [November 30, 2021, 1:05pm UTC](https://qa.fmod.com/t/3d-audio-doesnt-work-as-intended/18035/1 "2021-11-30T13:05:06Z")

</div>

Hi there, I’m currently making a 2D side scroller platform game for a project. I’ve implemented the basic FMOD systems and functions and everything works perfectly. However, when I started working on the 3D side, the 3D audio doesn’t play from object position. The 3D audio works perfect when player collide with the objects intended to be collided with, but doesn’t play from the source when player is not moving.

I’ve created a map to store all the FMOD vector with the entity ID that i’ve passed into. Everything looks fine when i print them out on console but nothing seems to be playing from the object’s position.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/0/0ab43320d2bf92ed35c61d2e3f52a3e9239c0e10.png)

This function is to set the fmod’s camera and object position. May i know how do i go around fixing this? Thanks!

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [December 3, 2021, 3:26am UTC](https://qa.fmod.com/t/3d-audio-doesnt-work-as-intended/18035/2 "2021-12-03T03:26:40Z")

</div>

I can’t see anything wrong with the code snippet you’ve shared, but I don’t have enough information to advise on what could be going wrong. Here are some things to check:

- Did you set the sound’s mode to [FMOD\_3D](https://fmod.com/resources/documentation-api?version=2.02&page=core-api-common.html#fmod_3d) when you created them with `System::createSound`?
- Do you have more than one listener?
- Does setting a different value for the distancefactor in `System::set3DSettings` make a difference?
