Playing sound on hiding of overlay

Hi!

Short question:

Why is it the case (at least here on my Windows Simulator), that a sound, that started playing in an overlay, immediately stops when hiding the overlay?

When I start a sound before a normal scene transition, there is no interruption.

But there is in my case: I have a button in an overlay. A click on this button shall play a short sound, and hide the current overlay. But the sound is will not be played (unless I build in a short artificial delay before hiding the overlay).

Thx for infos!

Have you tried playing the sound from the overlayEndedphase in the non-overlay scene?  

Are you destroying the overlay using storyboard.removeScene()?

Of course that would be a possible workaround, but not a solution to the problem. In my app there are quite complex transitions between different overlays and I do not want to put any functionality where it does not belong to.

No, I’m just calling “storyboard.hideOverlay()” as usual.

If I put in a delay, the sound is played, if not, the sound is cut when closing the overlay.

Have you tried playing the sound from the overlayEndedphase in the non-overlay scene?  

Are you destroying the overlay using storyboard.removeScene()?

Of course that would be a possible workaround, but not a solution to the problem. In my app there are quite complex transitions between different overlays and I do not want to put any functionality where it does not belong to.

No, I’m just calling “storyboard.hideOverlay()” as usual.

If I put in a delay, the sound is played, if not, the sound is cut when closing the overlay.