updated
This commit is contained in:
BIN
short_control_alarm.dfpwm
Normal file
BIN
short_control_alarm.dfpwm
Normal file
Binary file not shown.
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user