Sound Bug (Stopped sounds playing)

Pretty simple bug, when you play sounds that haven’t loaded, and stop them before they have loaded, a few seconds after, once they have loaded they play, even though they were stopped. (If that makes any sense.)
I really want the only sound engine back. Q_Q

Here’s a repro:

1.) Choose a myriad of long sound files.
2.) Add a LocalScript in a Local area of Player (I choose StarterGui)
3.) Put all the sounds you chose inside the physical script.
4.) Put this code inside the script:

[code]repeat wait() until (game.Players.LocalPlayer.Character) --yeh im still doing this, watcha gonna do?

for i,v in ipairs(script:GetChildren()) do
if (v:IsA(“Sound”)) then

	v:Play()
	v:Stop()

end

end[/code]

5.) Start your player, and observe the results. None of the sounds should play. All do.

Before the sound update, I used this method to preload audio onto my games properly (it completely kicked the ass of the load lag problem.)

I hope it can be fixed.

1 Like

I can put in a fix so that asking not to play a sound will not play a sound after you have set the soundId and started a load. Currently, it goes with what you had asked it to do at an earlier time, but like you’ve seen, if there’s a lot of delay, it can get out of sync with your most recent request.

This is an easy fix.

[quote] I can put in a fix so that asking not to play a sound after you have set the soundId (started a load) does not play the sound. Currently, it goes with what you had asked it to do at an earlier time, but like you’ve seen, if there’s a lot of delay, it can get out of sync with your most recent request.

This is an easy fix. [/quote]

Wait, what? I’m having no issues with sounds at all recently.

Yes, this is a special case problem. It sounds like he’s getting problems where there’s a delay in loading a sound, and then his script calls stop, but the sound still plays, because the loading delay causes some ordering to get setup wrongly. For the general case, I don’t think this is a problem, but it is a problem though.

Actually, yes I have noticed this. Also it appears ResetPlayerGuiOnSpawn is defective. I’d create another thread, but since you’re here it may be easier.

You’ll have to create another thread for that. I am not working in that area atm.

Let me know when you ship a fix, thanks.

Should be available in about 1.5 weeks, barring any problems in testing.

Will do. Won’t be sooner than 1.5 weeks though.

Was this updated?
I noticed some changes in behavior.

Was this updated recently?
I noticed a change in behavior for the better.