adjust audio playback volume in playSound function
This commit is contained in:
@@ -23,7 +23,7 @@ local function playSound(speaker, fileName)
|
|||||||
for input in values do
|
for input in values do
|
||||||
print("playing audo....")
|
print("playing audo....")
|
||||||
local decoded = decoder(input)
|
local decoded = decoder(input)
|
||||||
while not speaker.playAudio(decoded, 127) do
|
while not speaker.playAudio(decoded, 3) do
|
||||||
os.pullEvent("speaker_audio_empty")
|
os.pullEvent("speaker_audio_empty")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user