diff --git a/short_control_alarm.dfpwm b/short_control_alarm.dfpwm new file mode 100644 index 0000000..eb8e06b Binary files /dev/null and b/short_control_alarm.dfpwm differ diff --git a/speaker_driver.lua b/speaker_driver.lua index 696e52a..5dcb9bc 100644 --- a/speaker_driver.lua +++ b/speaker_driver.lua @@ -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()