BGM模块新增seek方法

This commit is contained in:
MrZ626
2021-09-24 02:33:09 +08:00
parent f9650c565c
commit b890813732

View File

@@ -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]