This commit is contained in:
2025-06-15 19:48:41 -04:00
parent d6221293cb
commit 3edd415711
3 changed files with 126062 additions and 12 deletions

View File

@@ -9,7 +9,6 @@ local function getFileName(name)
end
local function playSound(speaker, fileName)
local fileStream = getFileName(fileName)
local values = io.lines(fileStream, 16 * 1024)
@@ -23,11 +22,14 @@ local function playSound(speaker, fileName)
end
local function playControlRoomAlarm(speakers)
playSound(speakers,"short_control_alarm")
end
local function playExternalAlarm(speakers)
playSound(speakers,"external_alarm")
end
local function createSoundFile(fileName)
local baseRoute = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/"
@@ -45,7 +47,6 @@ local function createSoundFile(fileName)
end
function addSoundFile(fileName)
createSoundFile(fileName)
end
@@ -54,10 +55,10 @@ local function watch()
end
local function startup()
local sounds = {
{ fileName = "short_control_alarm" }
{ fileName = "short_control_alarm" },
{ fileName = "external_alarm" }
}
for i, item in ipairs(sounds) do