BGM模块新增seek方法
This commit is contained in:
@@ -103,6 +103,11 @@ function BGM.init(list)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
function BGM.seek(t)
|
||||||
|
if BGM.playing then
|
||||||
|
BGM.playing:seek(t)
|
||||||
|
end
|
||||||
|
end
|
||||||
function BGM.continue()
|
function BGM.continue()
|
||||||
if BGM.lastPlayed then
|
if BGM.lastPlayed then
|
||||||
BGM.nowPlay,BGM.playing=BGM.lastPlayed,Sources[BGM.lastPlayed]
|
BGM.nowPlay,BGM.playing=BGM.lastPlayed,Sources[BGM.lastPlayed]
|
||||||
|
|||||||
Reference in New Issue
Block a user