fix: simplify playSingleSound function by removing unnecessary loop
This commit is contained in:
@@ -19,12 +19,8 @@ end
|
||||
|
||||
|
||||
local function playSingleSound(speaker, values)
|
||||
|
||||
for input in values do
|
||||
print("playing audo....")
|
||||
local decoded = decoder(input)
|
||||
local decoded = decoder(values)
|
||||
speaker.playAudio(decoded, 3)
|
||||
end
|
||||
end
|
||||
|
||||
local function playSound(speaker, fileName)
|
||||
|
||||
Reference in New Issue
Block a user