diff --git a/Zframework/bgm.lua b/Zframework/bgm.lua index 364b38e8..b1ad4b8f 100644 --- a/Zframework/bgm.lua +++ b/Zframework/bgm.lua @@ -103,6 +103,11 @@ function BGM.init(list) return true end end + function BGM.seek(t) + if BGM.playing then + BGM.playing:seek(t) + end + end function BGM.continue() if BGM.lastPlayed then BGM.nowPlay,BGM.playing=BGM.lastPlayed,Sources[BGM.lastPlayed]