This commit is contained in:
2025-06-15 19:12:19 -04:00
parent 92bb6e138a
commit 377c573a45
2 changed files with 9 additions and 9 deletions

View File

@@ -23,8 +23,8 @@ local function getSoundStream(fileName)
end
local function playSound(speaker, fileName)
local fileStream = getSoundStream(fileName)
print(fileStream)
--local fileStream = getSoundStream(fileName)
local fileStream = getFileName(fileName)
local values = io.lines(fileStream, 16 * 1024)
for input in values do
print("playing audo....")
@@ -38,7 +38,7 @@ end
local function playControlRoomAlarm(speakers)
playSound(speakers,"control_alarm")
playSound(speakers,"short_control_alarm")
end
@@ -58,13 +58,13 @@ end
local function startup()
-- local sounds = {
-- { fileName = "control_alarm" }
-- }
local sounds = {
{ fileName = "control_alarm" }
}
-- for i, item in ipairs(sounds) do
-- addSoundFile(item.fileName)
-- end
for i, item in ipairs(sounds) do
addSoundFile(item.fileName)
end
end
local function shutdown()