# Sounds stop playing when loading a new map

**URL:** <https://forums.unrealengine.com/t/sounds-stop-playing-when-loading-a-new-map/379047>\
**Category:** Audio\
**Tags:** unreal-engine, question\
**Created:** [December 12, 2016, 9:40am UTC](https://forums.unrealengine.com/t/sounds-stop-playing-when-loading-a-new-map/379047 "2016-12-12T09:40:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eudrea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eudrea](https://forums.unrealengine.com/u/eudrea)\
**Post date:** [December 12, 2016, 9:40am UTC](https://forums.unrealengine.com/t/sounds-stop-playing-when-loading-a-new-map/379047/1 "2016-12-12T09:40:35Z")

</div>

Build Type: Happens when running PIE in editor as well as in a Development build (not tested other build types)

Build version: 4.14.X (0 or 1, happens in both), never happened in 4.12.5 (not tested in 4.13)

Detailed description of the issue: Audio stops playing after loading a new map. There is no telling which map because it randomly happens with different maps, in different projects (see the details on the following threads, there are multiple people with different projects which get the same issue).

> **[Audio stops playing randomly](https://forums.unrealengine.com/questions/535402/audio-stops-playing-randomly.html)**
>
> Ok, So I’m trying to play background music, some SFX and some voice sound for AI. I’m on my custom project and didn’t try reproducing the scene on a blank template as I’m half way through my game setup. Reproducing will need a lot of time. Now, ...

> **[Updating to 4.14 breaks the audio](https://forums.unrealengine.com/questions/530859/updating-to-414-completely-screws-the-audio.html)**
>
> We recently updated to 4.14 from 4.12.5 (4.13 had other issues which didn’t allow us to update). At this point there is one bothering issue that appears in this new update. In the last version we used we played sounds normally and they were heard...

Here there are a few details about the issue, when it happens and how.

- the sounds stop when the map is loaded (for example, we have a music file that starts right before the scene is shown to us - because we do some initialization that takes time before we render the first frame, music plays for a second and then pauses when the engine starts rendering - only happening when the sound uses its own thread, otherwise we cannot hear the music playing at all)

- the sounds play correctly when we resume the game (all sounds that should have played, play after resume UGameplayStatics::SetGamePaused)

- they can play a short sound or a longer sound (steamed or not), its the same error and happens regardless.

- its not related to running in its own audio thread (tested only in PIE, not sure separate audio thread is supported in Editor), it happens in both cases

- sometimes if the same sound is played for multiple times (with PlaySound2d or PlaySoundAtLocation, for example UI selection sounds or weapon sounds) it gets skipped once or twice based on how many times it has been played (I guess) which might have something to do with sound concurrency

Screenshots/Link to video: [- YouTube](https://www.youtube.com/watch?v=xmskcYqYZco&feature=youtu.be) . This is from a thread reported here [https://answers.unrealengine.com/questions/535402/audio-stops-playing-randomly.html](https://answers.unrealengine.com/questions/535402/audio-stops-playing-randomly.html) but is exactly the problem we have.

Repro Steps  
It doesn’t happen all the time, here it seems never with the first map we open. However, it will happen at the second/third map we open and always happens within 3-5 opened maps, we can say while playing the game it is 100% certain it will happen. Once it happens in a map it doesn’t mean the next map will have the problem too, sometimes it happens, sometimes it doesn’t.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ee26db25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ee26db25](https://forums.unrealengine.com/u/anonymous_user_ee26db25)\
**Post date:** [December 12, 2016, 1:38pm UTC](https://forums.unrealengine.com/t/sounds-stop-playing-when-loading-a-new-map/379047/2 "2016-12-12T13:38:09Z")

</div>

Probably related:

> **[Sound Cue - Restart mutes Sound Loop](https://forums.unrealengine.com/questions/526482/sound-cue-restart-mutes-sound-loop.html)**
>
> Execute “Open Level” while the game is paused breaks looping sounds. Clean Reproduction: Create a Top Down Example Project Open TopDownExampleMap Create a Sound Cue that plays a wav in a loop Place that Sound Cue in the World Open...

---

<div class="post-metadata">

**Author:** ![eudrea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eudrea](https://forums.unrealengine.com/u/eudrea)\
**Post date:** [December 12, 2016, 2:15pm UTC](https://forums.unrealengine.com/t/sounds-stop-playing-when-loading-a-new-map/379047/3 "2016-12-12T14:15:34Z")

</div>

Possibly, thanks!  
Thing is we have no issue with persisting across levels, the sounds are not setup to persist, they are just normal sounds. Hopefully, the default behavior of persisting across levels is to be false unless told otherwise.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [December 12, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/sounds-stop-playing-when-loading-a-new-map/379047/4 "2016-12-12T16:10:08Z")

</div>

For tracking purposes we are going to continue the investigation of this issue on the post where it is being addressed already.

> **[Sound Cue - Restart mutes Sound Loop](https://forums.unrealengine.com/questions/526482/sound-cue-restart-mutes-sound-loop.html)**
>
> Execute “Open Level” while the game is paused breaks looping sounds. Clean Reproduction: Create a Top Down Example Project Open TopDownExampleMap Create a Sound Cue that plays a wav in a loop Place that Sound Cue in the World Open...

I will return there once I have completed my testing and discover any new information.

Thanks,
