# Audio volume priority does not work

**URL:** <https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557>\
**Category:** Unreal Engine\
**Created:** [April 10, 2019, 10:21pm UTC](https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557 "2019-04-10T22:21:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![imnotyourson](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@imnotyourson](https://qa.fmod.com/u/imnotyourson)\
**Post date:** [April 10, 2019, 10:21pm UTC](https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557/1 "2019-04-10T22:21:45Z")

</div>

Has anyone tried to follow the instruction here on how to implement reverb zone in UE4? [https://www.fmod.com/resources/documentation-ue4?version=2.0&page=user-guide.html#reverb-zones](https://www.fmod.com/resources/documentation-ue4?version=2.0&page=user-guide.html#reverb-zones)  
I follow everything it said there, but when I have 2 audio volume overlap upon each other with priority 1 for the smallest one and priority 0 for the bigger one, it still plays the reverb snapshot of the bigger one despite I have fully emerged the character in the smaller volume. I tried to change the priority value around and it still happens.

 ![PNG](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/bab2f1199b890b3385df75b9acfd92949ed62916.jpeg)

Did I do anything wrong? What could be the problem here? I try to use the same setup but with Unreal Reverb setting and it still works fine so I assume it is not the engine’s fault.

---

<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:** [April 18, 2019, 3:53am UTC](https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557/2 "2019-04-18T03:53:07Z")

</div>

I am able to get it working as expected by following those steps, I’m not sure why it wouldn’t be working.

What version of FMOD and UE4 are you using?

---

<div class="post-metadata">

**Author:** ![imnotyourson](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@imnotyourson](https://qa.fmod.com/u/imnotyourson)\
**Post date:** [April 18, 2019, 1:18pm UTC](https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557/3 "2019-04-18T13:18:46Z")

</div>

I was using unreal 4.21 and FMOD1.10, I’m not sure where did I do wrong cause apparently the reverb does play, but only the priority of the audio volume doesn’t work.

---

<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:** [April 24, 2019, 2:17am UTC](https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557/4 "2019-04-24T02:17:16Z")

</div>

Are you able to test it in a new/empty project to try to isolate it?

---

<div class="post-metadata">

**Author:** ![imnotyourson](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@imnotyourson](https://qa.fmod.com/u/imnotyourson)\
**Post date:** [April 24, 2019, 9:31pm UTC](https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557/5 "2019-04-24T21:31:29Z")

</div>

I tried to test it in a blank project and apparently it also have the same issue. I put a youtube link down there to show my set-up. I have done this same thing with Reverbs and sounds from UE audio, they work just fine as expected. [https://youtu.be/qhi4dIU5kf0](https://youtu.be/qhi4dIU5kf0)

---

<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:** [April 26, 2019, 7:51am UTC](https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557/6 "2019-04-26T07:51:10Z")

</div>

I managed to reproduce the issue, it appears that we don’t update the listener volume separately to the InteriorSettings (eg. Ambient Zone Settings).

This should be a fairly easy fix, we just need to update the volume used in FMODListener.cpp more often.

From:

```auto
void FFMODListener::ApplyInteriorSettings(class AAudioVolume *InVolume, const FInteriorSettings &Settings)
{
    if (InteriorSettings != Settings)
    {
        ...
        Volume = InVolume;
        InteriorSettings = Settings;
    }    
}

```

To:

```auto
void FFMODListener::ApplyInteriorSettings(class AAudioVolume *InVolume, const FInteriorSettings &Settings)
{
    if (InteriorSettings != Settings)
    {
        ...
        InteriorSettings = Settings;
    }
    Volume = InVolume;
}

```

Because the `InVolume` is always the highest priority volume enveloping the listener, we don’t need to check the priority again.

I will do my best to get this fix in for the upcoming release.

---

<div class="post-metadata">

**Author:** ![imnotyourson](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@imnotyourson](https://qa.fmod.com/u/imnotyourson)\
**Post date:** [May 1, 2019, 1:55pm UTC](https://qa.fmod.com/t/audio-volume-priority-does-not-work/14557/7 "2019-05-01T13:55:09Z")

</div>

Thanks Cameron!  
Our programmer has applied the fix to the project and everything work as it suppose to now
