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