mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update
- sound
This commit is contained in:
parent
7bac0f32fc
commit
a6568a955f
@ -1122,7 +1122,9 @@ function ATIS:SetSoundfilesInfoFile( csvfile )
|
||||
if soundfile then
|
||||
|
||||
-- Set duration
|
||||
soundfile.duration=soundinfo.duration
|
||||
soundfile.duration=tonumber(soundinfo.duration)
|
||||
|
||||
self:I(soundfile)
|
||||
|
||||
else
|
||||
self:E(string.format("ERROR: Could not get info for sound file %s", sound.filename))
|
||||
|
||||
@ -268,7 +268,7 @@ function RADIOQUEUE:NewTransmission(filename, duration, path, tstart, interval,
|
||||
return nil
|
||||
end
|
||||
if type(duration)~="number" then
|
||||
self:E(self.lid.."ERROR: Duration specified is NOT a number.")
|
||||
self:E(self.lid..string.format("ERROR: Duration specified is NOT a number but type=%s. Filename=%s, duration=%s", type(duration), tostring(filename), tostring(duration)))
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user