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

BIN
short_control_alarm.dfpwm Normal file

Binary file not shown.

View File

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