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,12 +19,8 @@ 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)