updated a bunch
This commit is contained in:
@@ -29,7 +29,6 @@ local function playSound(speaker, fileName)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local function playControlRoomAlarm(speakers)
|
||||
playSound(speakers,"short_control_alarm")
|
||||
end
|
||||
@@ -37,6 +36,7 @@ end
|
||||
local function playExternalAlarm(speakers)
|
||||
playSound(speakers,"external_alarm")
|
||||
end
|
||||
|
||||
local function playInternalAlarm(speakers)
|
||||
playSound(speakers,"internal_alarm")
|
||||
end
|
||||
@@ -83,16 +83,13 @@ local function createSoundFile(fileName)
|
||||
print("Recieved response!")
|
||||
local fileData = handle.readAll()
|
||||
local file = fs.open(name,"w")
|
||||
|
||||
file.write(fileData)
|
||||
|
||||
file.write(fileData)
|
||||
file.close()
|
||||
handle.close()
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
function addSoundFile(fileName)
|
||||
createSoundFile(fileName)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user