# Error calling set3DAttributes on a 3D sound

**URL:** <https://qa.fmod.com/t/error-calling-set3dattributes-on-a-3d-sound/11695>\
**Category:** FMOD Engine\
**Created:** [October 24, 2014, 2:30pm UTC](https://qa.fmod.com/t/error-calling-set3dattributes-on-a-3d-sound/11695 "2014-10-24T14:30:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvangaal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/rvangaal/32/11_2.png) [@rvangaal](https://qa.fmod.com/u/rvangaal)\
**Post date:** [October 24, 2014, 2:30pm UTC](https://qa.fmod.com/t/error-calling-set3dattributes-on-a-3d-sound/11695/1 "2014-10-24T14:30:40Z")

</div>

Hi,

I’m calling set3DAttributes() on a sound (FMOD Studio 1.05.02) and this is giving me the following error in the SystemCallBack:

```
"ChannelControl::set3DAttributes(0CCEF2A8:{418.769,3.56631,-27.6188}, 0CCEF2B4:
{0.000335941,-0.1047,-0.000225664},00000000)[40; Tried to call a command
 on a 2d sound when the command was meant for 3d sound.]"

```

However, I call createSound() with the FMOD\_3D flag. Also, if just before calling set3DAttributes() I do:

```
  FMOD_MODE mode;
  sample->sound->getMode(&mode);

```

I get mode==0x12, which means FMOD\_3D|FMOD\_LOOP\_NORMAL.  
Is there any reason why this error would trigger? I’ve been burning a day sofar on this problem but getting no closer.

Is there any way I could make an FMOD\_3D flagged sound behave like its 2D? (set3DLevel(0) for example)

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![rvangaal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/rvangaal/32/11_2.png) [@rvangaal](https://qa.fmod.com/u/rvangaal)\
**Post date:** [October 24, 2014, 3:31pm UTC](https://qa.fmod.com/t/error-calling-set3dattributes-on-a-3d-sound/11695/2 "2014-10-24T15:31:10Z")

</div>

To answer myself; I had set the channel after playSound() to 2D, hence the sound itself was still 3D, but the channel 2D…
