- Sound input
This commit is contained in:
Frank
2024-05-25 01:56:23 +02:00
parent f1c03e1b86
commit 7bac0f32fc
3 changed files with 60 additions and 2 deletions

View File

@@ -249,6 +249,9 @@ do -- Sound File
-- @param #string Duration Duration in seconds. Default 3 seconds.
-- @return #SOUNDFILE self
function SOUNDFILE:SetDuration(Duration)
if Duration and type(Duration)=="string" then
Duration=tonumber(Duration)
end
self.duration=Duration or 3
return self
end