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
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user