Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Audio finishes when paused duration exceeds audio duration

As the title states, when playing a sound cue in game and at any point during the playback pause the game, count until the duration of the sound cue has exceeded and unpause to find that the sound cue has been destroyed/finished and does not continue where it left off.

Reproduction Steps:

  • Create a new project

  • Play a sound cue during runtime (make a note of the duration of the sound cue)

  • Pause the game using Set Game Pause(true)

  • Wait until real world time has exceeded the duration of the sound cue

  • Unpause the game Find that the sound cue will not continue where it left off.

UE4 4.16

Is there currently a workaround for this?

Thanks, Jon

Product Version: UE 4.16
more ▼

asked Oct 24 '17 at 02:39 PM in Bug Reports

avatar image

59 4 7 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello ZeJudge,

I was able to reproduce the issue you described in 4.16, but in 4.18 it seems to be working correctly. In 4.18, regardless of how long the game was paused, when I resumed play the audio would pick back up where it left off.

I would recommend trying this in 4.18 and let me know if you still run into issues.

Thanks, Tyler

more ▼

answered Nov 06 '17 at 01:51 PM

avatar image

Tyler X ♦♦ STAFF
272 2 3 2

avatar image ZeJudge Nov 06 '17 at 06:16 PM

Hi Tyler,

Thats good to hear. I'll give this a test in 4.18. Thanks, Jon

avatar image ZeJudge Nov 17 '17 at 04:40 PM

I can confirm this issue no longer happens in 4.18

avatar image Deeroy08 Nov 22 '18 at 10:51 AM

For people who are still using versions previous to 4.18, and don't have the possibility of switching engines, what is the fix for this? I'm getting this problem as well, or where can I find it in 4.18 so I can reproduce it in 4.17

avatar image Deeroy08 Nov 28 '18 at 12:25 PM

So my problem was not with SetGamePause, but with SetPause function of AudioComponent. I did a fix in AudioDevice where it updates the PlaybackTime of the ActiveSound, to only update if the ActiveSound is not Paused. That fixed my issue. Thanks anyway

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question