Potentially CLOSES #1310, CLOSES #1005, CLOSES #1291

This commit is contained in:
bryanthaboi
2026-08-18 15:49:47 -04:00
parent 7583ba8729
commit 99806ead25
1216 changed files with 264324 additions and 147175 deletions
+6 -2
View File
@@ -169,8 +169,8 @@ local function playPath(data, key, def, pitch, tempo, plain)
cache[key] = s
src = s
end
src:stop()
src:play()
pcall(src.stop, src)
pcall(src.play, src)
return src
end
@@ -817,6 +817,10 @@ end
-- def is re-resolved on the next play (20 §2 cache contract, audio row)
Assets.register(Sound.invalidate)
function Sound.onDeviceReset()
Sound.invalidate()
end
-- re-apply persisted audio options (Game calls this on boot and after
-- loading a save)
function Sound.applyOptions(opts)