添加中文和歌词支持,添加多通道
This commit is contained in:
193
music168.lua
193
music168.lua
@@ -1,10 +1,9 @@
|
||||
-----------------------------------------------------------------系统启动阶段-------------------------------------------------------------------------------------------------
|
||||
|
||||
--*获取程序所在目录
|
||||
local mypath = "/"..fs.getDir(shell.getRunningProgram())
|
||||
|
||||
local mypath = "/"..fs.getDir(shell.getRunningProgram())
|
||||
if not fs.exists(mypath.."/lib/basalt.lua") then shell.run("wget https://git.liulikeji.cn/GitHub/Basalt/releases/download/v1.6.3/basalt.lua lib/basalt.lua") end
|
||||
if not fs.exists(mypath.."/speaker.lua") then shell.run("wget https://git.liulikeji.cn/xingluo/ComputerCraft-Music168-Player/releases/download/v1.0.0/speaker.lua") end
|
||||
if not fs.exists(mypath.."/speakerlib.lua") then shell.run("wget https://git.liulikeji.cn/xingluo/ComputerCraft-Music168-Player/releases/download/v1.1.0/speakerlib.lua") end
|
||||
|
||||
--*GUI库导入
|
||||
basalt = require(mypath.."/lib/basalt")
|
||||
@@ -15,7 +14,6 @@ main = {
|
||||
}
|
||||
_G.Playprint = false
|
||||
_G.Playopen =false
|
||||
|
||||
--*GUI框架配置表
|
||||
local sub = {
|
||||
["UI"] = {
|
||||
@@ -36,7 +34,6 @@ local sub = {
|
||||
mainf:addFrame():setPosition(2, "parent.h + 1"):setSize("parent.w-2", 13):setBackground(colors.orange),
|
||||
}
|
||||
}
|
||||
|
||||
--创建动画
|
||||
play_Gui_UP = mainf:addAnimation():setObject(sub["BF"][1]):move(1,1,0.3)
|
||||
play_Gui_DO = mainf:addAnimation():setObject(sub["BF"][1]):move(1,mainf:getHeight()+1,1)
|
||||
@@ -52,21 +49,21 @@ play_Gui = {
|
||||
sub["BF"][1]:addButton():setPosition(1,1):setSize(3, 1):setText("V"):onClick(function() play_Gui_DO:play() play_GUI_state=false main[1]:enable() end):setBackground(colors.red):setForeground(colors.white),
|
||||
sub["BF"][1]:addLabel():setText("NO Music"):setPosition(sub["BF"][1]:getWidth()/2 - #play_name/2,1):setBackground(colors.red):setForeground(colors.white),
|
||||
sub["BF"][1]:addLabel():setText("NO Music"):setPosition(sub["BF"][1]:getWidth()/2 - #play_id/2,2):setBackground(colors.red):setForeground(colors.white),
|
||||
sub["BF"][1]:addLabel():setText(" "):setPosition(3,4):setSize("parent.w-4", "parent.h-10"):setBackground(colors.white):setForeground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition(3,"parent.h-5"):setSize(1, 1):setText("\3"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition(8,"parent.h-5"):setSize(1, 1):setText("\25"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w/2","parent.h-5"):setSize(2, 1):setText("+-"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w-3","parent.h-5"):setSize(1, 1):setText("@"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w-8","parent.h-5"):setSize(1, 1):setText("E"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addProgressbar():setPosition(3, "parent.h - 4"):setSize("parent.w - 4", 1):setProgressBar(colors.red, "=", colors.white):setBackground(colors.red):setBackgroundSymbol("-"):setForeground(colors.white),
|
||||
sub["BF"][1]:addLabel():setText("00:00"):setPosition("3", "parent.h - 3"):setSize(5, 1):setForeground(colors.white),
|
||||
sub["BF"][1]:addLabel():setText("00:00"):setPosition("parent.w - 6", "parent.h - 3"):setSize(5, 1):setForeground(colors.white),
|
||||
sub["BF"][1]:addButton():setPosition(3, "parent.h - 2"):setSize(3, 1):setText("=O="):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w /2 - 4","parent.h - 2"):setSize(2, 1):setText("|\17"):onClick(function() play_set_1() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w / 2 ", "parent.h - 2"):setSize(2, 1):setText("I>"):onClick(function() if play_data_table["play"] then _G.Playstop = true play_data_table["play"]=false else play_data_table["play"]=true end end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w / 2 +4", "parent.h - 2"):setSize(2, 1):setText("\16|"):onClick(function() play_set_0() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w - 4", "parent.h - 2"):setSize(3, 1):setText("=T="):onClick(function() play_table_Gui_UP:play() main[1]:disable() sub["BF"][1]:disable() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addSlider():setPosition(3, "parent.h - 4"):setSize("parent.w - 4", 1):setMaxValue(100):setBackground(colors.red):setForeground(colors.white),--:setBackgroundSymbol("\x8c"):setSymbol(" "),
|
||||
sub["BF"][1]:addProgram():setPosition(2,2):setSize("parent.w-2", "parent.h-4"),
|
||||
1,--sub["BF"][1]:addButton():setPosition(3,"parent.h-5"):setSize(1, 1):setText("\3"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
1,--sub["BF"][1]:addButton():setPosition(8,"parent.h-5"):setSize(1, 1):setText("\25"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
1,--sub["BF"][1]:addButton():setPosition("parent.w/2","parent.h-5"):setSize(2, 1):setText("+-"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
1,--sub["BF"][1]:addButton():setPosition("parent.w-3","parent.h-5"):setSize(1, 1):setText("@"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
1,--sub["BF"][1]:addButton():setPosition("parent.w-8","parent.h-5"):setSize(1, 1):setText("E"):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addProgressbar():setPosition(3, "parent.h - 2"):setSize("parent.w - 4", 1):setProgressBar(colors.red, "=", colors.white):setBackground(colors.red):setBackgroundSymbol("-"):setForeground(colors.white),
|
||||
sub["BF"][1]:addLabel():setText("00:00"):setPosition("3", "parent.h - 1"):setSize(5, 1):setForeground(colors.white),
|
||||
sub["BF"][1]:addLabel():setText("00:00"):setPosition("parent.w - 6", "parent.h - 1"):setSize(5, 1):setForeground(colors.white),
|
||||
sub["BF"][1]:addButton():setPosition(3, "parent.h - 0"):setSize(3, 1):setText("=O="):onClick(function() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w /2 - 4","parent.h - 0"):setSize(2, 1):setText("|\17"):onClick(function() play_set_1() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w / 2 ", "parent.h - 0"):setSize(2, 1):setText("I>"):onClick(function() if play_data_table["play"] then _G.Playstop = true play_data_table["play"]=false else play_data_table["play"]=true end end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w / 2 +4", "parent.h - 0"):setSize(2, 1):setText("\16|"):onClick(function() play_set_0() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addButton():setPosition("parent.w - 4", "parent.h - 0"):setSize(3, 1):setText("=T="):onClick(function() play_table_Gui_UP:play() main[1]:disable() sub["BF"][1]:disable() end):setForeground(colors.white):setBackground(colors.red),
|
||||
sub["BF"][1]:addSlider():setPosition(3, "parent.h - 2"):setSize("parent.w - 4", 1):setMaxValue(100):setBackground(colors.red):setForeground(colors.white),--:setBackgroundSymbol("\x8c"):setSymbol(" "),
|
||||
}
|
||||
--创建播放UI
|
||||
play_column_Gui = {
|
||||
@@ -75,13 +72,11 @@ play_column_Gui = {
|
||||
sub["BF"][2]:addButton():setPosition("parent.w-1", 1):setSize(1, 1):setText("T"):onClick(function() play_table_Gui_UP:play() main[1]:disable() end):setForeground(colors.white):setBackground(colors.lightGray),
|
||||
sub["BF"][2]:addButton():setPosition(1, 1):setSize("parent.w -5", 1):setText(""):onClick(function() play_Gui_UP:play() play_GUI_state=true main[1]:disable() end):setBackground(colors.lights),
|
||||
}
|
||||
|
||||
play_table_Gui = {
|
||||
sub["play_table"][1]:addButton():setPosition("parent.w-3",1):setSize(3, 1):setText("V"):onClick(function() if not play_GUI_state then main[1]:enable() end sub["BF"][1]:enable() play_table_Gui_DO:play() end):setBackground(colors.no):setForeground(colors.white),
|
||||
sub["play_table"][1]:addLabel():setText("PlyaTable"):setPosition(1,1):setForeground(colors.white),
|
||||
sub["play_table"][1]:addList():setPosition(2,3):setSize("parent.w-2", "parent.h-2"):setScrollable(true),
|
||||
}
|
||||
|
||||
--创建菜单栏
|
||||
menuBut = {
|
||||
sub["menu"][1]:addButton():setPosition(3,1):setSize(3, 1):setText("{Q}"):onClick(function() for index, value in ipairs(menuBut) do value:setBackground(colors.lightGray) end menuBut[1]:setBackground(colors.red) for index, value in ipairs(sub["UI"]) do value:hide() end sub["UI"][1]:show() end):setForeground(colors.white):setBackground(colors.red),
|
||||
@@ -93,19 +88,14 @@ menuBut = {
|
||||
-----------------------------------------------------------------DATA---------------------------------------------------------------------------------------------------------
|
||||
play_data_table = { ["music"] = {} , ["play"] = false ,["play_table"] = {}, ["play_table_index"] = 0, ["mode"] = "" , }
|
||||
_G.Playopen = false
|
||||
_G.getPlay = 0
|
||||
_G.getPlaymax = 0
|
||||
_G.setPlay = nil
|
||||
-----------------------------------------------------------------模块---------------------------------------------------------------------------------------------------------
|
||||
--多线程
|
||||
thread_table = {}
|
||||
function AddThread(funct)
|
||||
thread1 = mainf:addThread()
|
||||
thread1:start(funct)
|
||||
table.insert(thread_table,thread1)
|
||||
return #thread_table
|
||||
end
|
||||
|
||||
--音乐+
|
||||
function play_set_1()
|
||||
_G.music168_playopen = false
|
||||
_G.music168_playopen = false os.queueEvent("music168_play_stop")
|
||||
_G.getPlay = 0
|
||||
_G.Playopen = false
|
||||
_G.Playstop = false
|
||||
@@ -118,7 +108,7 @@ function play_set_1()
|
||||
end
|
||||
--音乐-
|
||||
function play_set_0()
|
||||
_G.music168_playopen = false
|
||||
_G.music168_playopen = false os.queueEvent("music168_play_stop")
|
||||
_G.getPlay = 0
|
||||
_G.Playopen = false
|
||||
_G.Playstop = false
|
||||
@@ -129,8 +119,6 @@ function play_set_0()
|
||||
play_table_Gui[3]:selectItem(table_index+1)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
--获取URL
|
||||
function GetmusicUrl(music_id)
|
||||
while true do
|
||||
@@ -144,14 +132,14 @@ function GetmusicUrl(music_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--dfpwm转码
|
||||
|
||||
--播放
|
||||
function playmusic(music_name,music_id,play_table,index)
|
||||
_G.getPlay = 0
|
||||
_G.getPlaymax = 0
|
||||
_G.Playopen = false
|
||||
_G.Playstop = false
|
||||
_G.music168_playopen = false os.queueEvent("music168_play_stop")
|
||||
|
||||
play_Gui[2]:setText(music_name):setPosition(sub["BF"][1]:getWidth()/2 +1 - #music_name/2,1)
|
||||
play_Gui[3]:setText(music_id):setPosition(sub["BF"][1]:getWidth()/2 +1 - #tostring(music_id)/2,2)
|
||||
play_column_Gui[1]:setText(music_name.." | "..tostring(music_id))
|
||||
@@ -159,24 +147,23 @@ function playmusic(music_name,music_id,play_table,index)
|
||||
play_data_table["play_table"] = play_table
|
||||
play_data_table["play_table_index"] = index
|
||||
play_data_table["play"] = true
|
||||
|
||||
play_table_Gui[3]:clear()
|
||||
for index, value in ipairs(play_table) do
|
||||
play_table_Gui[3]:addItem(value["name"].." | "..tostring(value["id"]))
|
||||
end
|
||||
|
||||
|
||||
play_table_Gui[3]:selectItem(index)
|
||||
_G.music168_music_id = music_id
|
||||
|
||||
|
||||
_G.music168_playopen = true
|
||||
--basalt.debug("true")
|
||||
--play_thread_id = AddThread(function ()
|
||||
--
|
||||
|
||||
|
||||
--end)
|
||||
|
||||
end
|
||||
|
||||
printUtf8 = load(http.get("https://alist.liulikeji.cn/d/HFS/utf8ptrint.lua").readAll())()
|
||||
--搜索
|
||||
server_url = "http://music168.liulikeji.cn:15843/"
|
||||
function Search(input_str,GUI_in,api)
|
||||
@@ -194,7 +181,6 @@ function Search(input_str,GUI_in,api)
|
||||
table_get = textutils.unserialiseJSON(json_str)
|
||||
if table_get["code"] ~= 404 then kg_a=true end
|
||||
end
|
||||
|
||||
if http1 then
|
||||
if kg_a then
|
||||
if api=="search" then
|
||||
@@ -208,18 +194,24 @@ function Search(input_str,GUI_in,api)
|
||||
Search_table[index]=out_table
|
||||
end
|
||||
end
|
||||
|
||||
a=2
|
||||
if play_lib_F then play_lib_F:remove() end
|
||||
play_lib_F = GUI_in[3]:addFrame():setPosition(1, 1):setSize("parent.w", "parent.h"):setBackground(colors.white):setScrollable()
|
||||
|
||||
for index, value in ipairs(Search_table) do
|
||||
frame = play_lib_F:addFrame():setPosition(2, a):setSize("parent.w-2", 3):setBackground(colors.lightBlue):onClick(function() if play_data_table["play"] then shell.run(mypath.."/speaker.lua stop") if _G.Playopen then end _G.music168_playopen = false play_data_table["play"]=false end play_Gui_UP:play() play_GUI_state = true main[1]:disable() playmusic(value["name"],value["id"],Search_table,index) end)
|
||||
frame:addLabel():setText(value["name"]):setPosition(1, 1)
|
||||
frame:addLabel():setText("id: "..value["id"]):setPosition(1, 2)
|
||||
frame:addLabel():setText("artists: "..value["artists_name"]):setPosition(1, 3)
|
||||
a=a+4
|
||||
id = value["id"]
|
||||
local frame = play_lib_F:addFrame():setPosition(2, a):setSize("parent.w-2", 4):setBackground(colors.lightBlue):onClick(function() if play_data_table["play"] then shell.run(mypath.."/speakerlib.lua stop") if _G.Playopen then end _G.music168_playopen = false os.queueEvent("music168_play_stop") play_data_table["play"]=false end play_Gui_UP:play() play_GUI_state = true main[1]:disable() _G.music168_playopen = false os.queueEvent("music168_play_stop") playmusic(value["name"],value["id"],Search_table,index) end)
|
||||
local textf = frame:addFrame():setPosition(1, 1):setSize("parent.w", 3)
|
||||
textf:addProgram():setPosition(1, 1):setSize("parent.w", 4):execute(function ()
|
||||
term.setBackgroundColor(colors.lightGray)
|
||||
term.clear()
|
||||
printUtf8(value["name"],colors.white,colors.lightGray)
|
||||
end):injectEvent("char", false, "w"):disable()
|
||||
--frame:addLabel():setText(value["name"]):setPosition(1, 1)
|
||||
frame:addLabel():setText("name:"..value["name"].." id:"..value["id"].." artists:"..value["artists_name"]):setPosition(1, 4)
|
||||
--frame:addLabel():setText("artists: "..value["artists_name"]):setPosition(1, 3)
|
||||
a=a+5
|
||||
end
|
||||
|
||||
break;
|
||||
else
|
||||
frame = GUI_in[3]:addFrame():setPosition(2, 2):setSize("parent.w-2", 3):setBackground(colors.lightBlue)
|
||||
@@ -231,6 +223,13 @@ function Search(input_str,GUI_in,api)
|
||||
end
|
||||
end
|
||||
|
||||
play_Gui[4]:onError(function(self, event, err)
|
||||
|
||||
end)
|
||||
|
||||
play_Gui[4]:onDone(function()
|
||||
|
||||
end)
|
||||
|
||||
-----------------------------------------------------------------渲染界面阶段-------------------------------------------------------------------------------------------------
|
||||
GUI = {
|
||||
@@ -246,18 +245,38 @@ GUI = {
|
||||
},
|
||||
}
|
||||
|
||||
_G.getPlay = nil
|
||||
|
||||
function thread2()
|
||||
while true do
|
||||
--basalt.debug(_G.music168_playopen)
|
||||
--basalt.debug(_G.music168_playopen = false os.queueEvent("music168_play_stop"))
|
||||
local screenWidth, _ = term.getSize()
|
||||
if play_Gui[18]:getIndex() ~=1 then _G.setPlay = (play_Gui[18]:getIndex() / (screenWidth-2)) * 100 play_Gui[18]:setIndex(1) end
|
||||
sleep(0.1)
|
||||
--
|
||||
if _G.getPlay ~= nil then
|
||||
play_Gui[10]:setProgress(_G.getPlay*100)
|
||||
|
||||
-- 处理用户拖动进度条设置播放位置
|
||||
|
||||
w,h = term.getSize()
|
||||
if w >= 100 and h >= 30 then px = "--12px" else px = "--8px" end
|
||||
|
||||
if play_Gui[18]:getIndex() ~=1 then
|
||||
local sliderValue = play_Gui[18]:getValue() or 0
|
||||
_G.setPlay = _G.getPlaymax * (sliderValue / 100)
|
||||
play_Gui[18]:setIndex(1)
|
||||
end
|
||||
|
||||
sleep(0.1)
|
||||
|
||||
-- 更新播放进度条
|
||||
if _G.getPlay ~= nil and _G.getPlaymax ~= nil and _G.getPlaymax > 0 then
|
||||
play_Gui[10]:setProgress((_G.getPlay / _G.getPlaymax) * 100)
|
||||
|
||||
-- 更新当前播放时间显示
|
||||
local current = _G.getPlay or 0
|
||||
local total = _G.getPlaymax or 0
|
||||
local currentTimeStr = string.format("%02d:%02d", math.floor(current / 60), current % 60)
|
||||
local totalTimeStr = string.format("%02d:%02d", math.floor(total / 60), total % 60)
|
||||
|
||||
play_Gui[11]:setText(currentTimeStr) -- 当前播放时间
|
||||
play_Gui[12]:setText(totalTimeStr) -- 总时间
|
||||
end
|
||||
|
||||
if play_data_table["play"]== true then
|
||||
_G.Playstop = false
|
||||
play_Gui[15]:setText("II")
|
||||
@@ -274,13 +293,13 @@ function thread2()
|
||||
index = play_table_Gui[3]:getItemIndex()
|
||||
if play_data_table["play"] then
|
||||
|
||||
shell.run(mypath.."/speaker.lua stop")
|
||||
shell.run(mypath.."/speakerlib.lua stop")
|
||||
if _G.Playopen then
|
||||
|
||||
end
|
||||
play_data_table["play"]=false
|
||||
end
|
||||
_G.music168_playopen = false
|
||||
_G.music168_playopen = false os.queueEvent("music168_play_stop")
|
||||
sleep(0.1)
|
||||
playmusic(play_data_table["play_table"][index]["name"],play_data_table["play_table"][index]["id"],play_data_table["play_table"],index)
|
||||
|
||||
@@ -299,31 +318,55 @@ end
|
||||
|
||||
function speakerp()
|
||||
function speaker_thread()
|
||||
local startTime = os.clock()
|
||||
|
||||
|
||||
--play_time_thread_id = AddThread(function() local time_f = os.date("%M%S") while true do while _G.Playopen do time_f = os.date("%M%S") sleep(0.1) end time_F = os.date("%M%S") play_Gui[11]:setText(string.format("%02d", os.date("*t",time_F-time_f).min or 00)..":"..string.format("%02d", os.date("*t",time_F-time_f).sec or 00) or "00:00") sleep(1) end end)
|
||||
--basalt.debug(mypath)
|
||||
--shell.run(mypath.."/speaker play "..dfpwmURL.readAll())
|
||||
if _G.music168_music_id then
|
||||
--basalt.debug(music168_music_id)
|
||||
_G.Playopen = true
|
||||
dfpwmURL = http.post("http://gmapi.liulikeji.cn:15842/dfpwm",textutils.serialiseJSON({ ["url"] = GetmusicUrl(_G.music168_music_id) } ))
|
||||
shell.run(mypath.."/speaker play "..dfpwmURL.readAll())
|
||||
play_set_0()
|
||||
end
|
||||
|
||||
|
||||
_G.Playopen = true
|
||||
play_Gui[4]:stop()
|
||||
|
||||
play_Gui[4]:execute(function ()
|
||||
shell.run("MusicLyrics.lua http://music168.liulikeji.cn:15843/api/song/lyric?id=".._G.music168_music_id.." "..px)
|
||||
end)
|
||||
play_Gui[4]:injectEvent("char","w")
|
||||
sleep(0.1)
|
||||
|
||||
--dfpwmURL = http.post("http://gmapi.liulikeji.cn:15842/dfpwm",textutils.serialiseJSON({ ["url"] = GetmusicUrl(_G.music168_music_id) } ))
|
||||
shell.run(mypath.."/speakerlib play "..GetmusicUrl(_G.music168_music_id))
|
||||
-- 检查是否播放完成自动跳转下一首
|
||||
if _G.music168_playopen then
|
||||
play_set_0()
|
||||
play_Gui[4]:stop()
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function while_thread()
|
||||
os.pullEvent("music168_play_stop")
|
||||
_G.getPlay = 0
|
||||
_G.getPlaymax = 0
|
||||
play_Gui[4]:stop()
|
||||
end
|
||||
function while_thread() while _G.music168_playopen do sleep(0.01) end end
|
||||
|
||||
while true do
|
||||
|
||||
if _G.music168_playopen then parallel.waitForAny(speaker_thread, while_thread) end
|
||||
if _G.music168_playopen then
|
||||
parallel.waitForAny(speaker_thread, while_thread)
|
||||
sleep(0.1)
|
||||
end
|
||||
sleep(0.01)
|
||||
end
|
||||
end
|
||||
|
||||
_G.music168_playopen = false
|
||||
function gc()
|
||||
while true do
|
||||
play_Gui[4]:injectEvent(os.pullEvent())
|
||||
end
|
||||
|
||||
end
|
||||
_G.music168_playopen = false os.queueEvent("music168_play_stop")
|
||||
-----------------------------------------------------------------启动循环渲染器-----------------------------------------------------------------------------------------------
|
||||
parallel.waitForAll(basalt.autoUpdate, thread2, paste, speakerp)
|
||||
-----------------------------------------------------------------以下结束-----------------------------------------------------------------------------------------------------
|
||||
parallel.waitForAll(basalt.autoUpdate, thread2, paste, speakerp,gc)
|
||||
-----------------------------------------------------------------以下结束-----------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user