mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-23 05:58:26 +02:00
+6
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user