# Virtual sound is still play on mobile

**URL:** https://qa.fmod.com/t/virtual-sound-is-still-play-on-mobile/14620
**Category:** Unity
**Created:** [April 27, 2019, 2:26pm UTC](https://qa.fmod.com/t/virtual-sound-is-still-play-on-mobile/14620 "2019-04-27T14:26:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kcWong](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kcWong](https://qa.fmod.com/u/kcWong)
#### Post date: [April 27, 2019, 2:26pm UTC](https://qa.fmod.com/t/virtual-sound-is-still-play-on-mobile/14620/1 "2019-04-27T14:26:26Z")

</div>

I play a event which it is far away from the listener. The instance is virtual and I can not hear the sound in the Unity Editor. That’s right. But I found it is different on mobile. Even the instance is virtual, but the sound is still play the head and stop immediately, and the sound is played at the position(0,0,0). So, I can hear a short and quick sound in a wrong place and a wrong effect. How I can fix it?  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/a3f1d2ecd40581d629010054fc082833beb06793.png)

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [May 2, 2019, 11:20pm UTC](https://qa.fmod.com/t/virtual-sound-is-still-play-on-mobile/14620/2 "2019-05-02T23:20:16Z")

</div>

What version of FMOD are you using?

---

<div class="post-metadata">

### Author: ![kcWong](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kcWong](https://qa.fmod.com/u/kcWong)
#### Post date: [May 5, 2019, 12:20pm UTC](https://qa.fmod.com/t/virtual-sound-is-still-play-on-mobile/14620/3 "2019-05-05T12:20:15Z")

</div>

1.10.06  
I set position after create the sound instance, then set attached to gameobject to fix this problem. I found attach to gameobject will update the instance position in time on mobile. I don’t know why FMOD do different way on different platform. And I don’t know why this problem happens when many instances are playing

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [May 5, 2019, 11:11pm UTC](https://qa.fmod.com/t/virtual-sound-is-still-play-on-mobile/14620/4 "2019-05-05T23:11:26Z")

</div>

I don’t think anything is being done differently on different platforms, it is likely to do with the performance of the different platforms.

Pre 1.10.11, AttachInstanceToGameObject wouldn’t set the actual instance position until the second FMOD system update. On slower devices this would be more noticeable as the FPS would be lower.

To work around this you could do something like this:

```auto
RuntimeManager.CreateInstance;
Instance.set3DAttributes;
Instance.start;
Instance.AttachInstanceToGameObject;

```

In 1.10.11, we changed AttachInstanceToGameObject to set the 3D Attributes immediately.  
Although you would need to Attach the instance before starting it to avoid the sound starting real.
