This commit is contained in:
2025-06-16 20:35:25 -04:00
parent adad0e8557
commit 8692a704ba

View File

@@ -29,10 +29,8 @@ end
local function playSound(speaker, fileName) local function playSound(speaker, fileName)
local fileStream = getFileName(fileName) local fileStream = fs.ope(getFileName(fileName), "r")
local values = io.lines(fileStream, 16 * 1024) local data = fileName.readAll()
local data = values.readAll()
local speakers = table.pack(peripheral.find("speaker")) local speakers = table.pack(peripheral.find("speaker"))
local tasks = {} local tasks = {}