fix: simplify playSingleSound function by removing unnecessary loop

This commit is contained in:
2025-06-16 20:37:06 -04:00
parent b428c24a1f
commit 8f64d54c00

View File

@@ -19,13 +19,9 @@ 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)