# I think "Allow Background Audio" is not working

**URL:** <https://forums.unrealengine.com/t/i-think-allow-background-audio-is-not-working/1764161>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, bug-report, question\
**Created:** [March 20, 2024, 11:16pm UTC](https://forums.unrealengine.com/t/i-think-allow-background-audio-is-not-working/1764161 "2024-03-20T23:16:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [March 20, 2024, 11:16pm UTC](https://forums.unrealengine.com/t/i-think-allow-background-audio-is-not-working/1764161/1 "2024-03-20T23:16:31Z")

</div>

I opened a thread on the forum because the audio doesn’t seem to work in a specific situation.

You can see all details here:

> [@I need help to fix an audio problem (UserWidget)](https://forums.unrealengine.com/t/i-need-help-to-fix-an-audio-problem-userwidget/1762544):
>
> I have a problem in my project. I have reproduced the problem in a new blank project. These are the project files: [UISoundProblem.zip](https://forums.unrealengine.com/uploads/short-url/5Kye6uJ1H9KsbAEGVTYvlEGGG66.zip) (13.2 MB) The problem is a sound can not be played in a UI (more or less) It does works when the player is shooting itself (see this video). When shooting to other player. The event work, the amimation work, but the sound does not work. I don’t want to replicate the audio. I just want the player to be the only one that can hear it when he get any damage. H…

A user gave me a solution:

> [@I need help to fix an audio problem (UserWidget)](https://forums.unrealengine.com/t/i-need-help-to-fix-an-audio-problem-userwidget/1762544/2):
>
> Can you try to set “AllowBackgroundAudio” to true in the editor settings? It is disabled by default - and I think that is why you are not hearing any sound (because the second PIE window has no user focus and thus is in the background) [image] Let me know if this fixes it +1

> ENABLE: “Level Editor/Miscellaneous/Allow Background Audio”

But that option doesn’t seem to work (See Video Attached Here).

> [@I need help to fix an audio problem (UserWidget)](https://forums.unrealengine.com/t/i-need-help-to-fix-an-audio-problem-userwidget/1762544/3):
>
> Hi @Featuriing Unfortunately that didn’t solve the problem. Thank you very much for your help. Very appreciated heart

I think the user is right, and seem that option doesn’t work like he says it should.  
In any case i cannot test the audio correctly.

If it is a bug, please fix it.

And if you know a console command to enable this option, please let me know.  
It will be useful for me while the bug is fixing.

Thank you so much!!

---

<div class="post-metadata">

**Author:** ![GreasyExcretion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GreasyExcretion](https://forums.unrealengine.com/u/GreasyExcretion)\
**Post date:** [July 8, 2024, 10:41pm UTC](https://forums.unrealengine.com/t/i-think-allow-background-audio-is-not-working/1764161/2 "2024-07-08T22:41:40Z")

</div>

@Ivan3z Any solution to this yet? Also could you please share the bug report

Edit (Solved)  
You can either set allow background sound in the editor preferences  
or  
add the following to DefaultEngine.ini (project folder) or to your unreal installation BaseEngine.ini

_[Audio]_  
_UnfocusedVolumeMultiplier=1.0_

This can also be added to any (other) Unreal-based game you have bought, if there’s no support for such through their options.

My case was very peculiar because I’m running two clients and I only need audio from one of them (one “game”, another is a control panel of sorts - connected by networking). To solve that additional problem, I added au.Debug.SoloAudio to commands.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [July 12, 2024, 1:33pm UTC](https://forums.unrealengine.com/t/i-think-allow-background-audio-is-not-working/1764161/3 "2024-07-12T13:33:55Z")

</div>

Hi @GreasyExcretion

Yes, this solution worked for me.

> [@I need help to fix an audio problem (UserWidget)](https://forums.unrealengine.com/t/i-need-help-to-fix-an-audio-problem-userwidget/1762544/2):
>
> Can you try to set “AllowBackgroundAudio” to true in the editor settings? It is disabled by default - and I think that is why you are not hearing any sound (because the second PIE window has no user focus and thus is in the background) [image] Let me know if this fixes it +1

Than you so much for sharing your solution too. 💓

---

<div class="post-metadata">

**Author:** ![EarHax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EarHax](https://forums.unrealengine.com/u/EarHax)\
**Post date:** [August 9, 2024, 9:37am UTC](https://forums.unrealengine.com/t/i-think-allow-background-audio-is-not-working/1764161/4 "2024-08-09T09:37:36Z")

</div>

Just FYI, in case anyone else changed this setting, tried launching PIE again after, and still couldn’t hear audio from backgrounded/unfocused PIE/editor windows, you need to relaunch Unreal Editor after changing this setting in order for it to take effect when running PIE.

And if that doesn’t work for you, I also followed instructions in another post to add/edit the following setting:  
`UnfocusedVolumeMultiplier=1.0`  
Which I added under `[/Script/Engine.AudioSettings]` in the `\Saved\Temp\Win64\PROJECTNAME\Config\DefaultEngine.ini`, and under `\Config\DefaultEngine.ini` from the unreal project root, and also to the BaseEngine.ini under `[Audio]` in `\Saved\Temp\Win64\Engine\Config\BaseEngine.ini`

So I’m not sure if it was the `Allow Background Audio` setting, or the `UnfocusedVolumeMultiplier=1.0` setting in the config files, but one of these worked for me after restarting UE.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 8, 2024, 9:38am UTC](https://forums.unrealengine.com/t/i-think-allow-background-audio-is-not-working/1764161/5 "2024-09-08T09:38:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
