update volume
This commit is contained in:
@@ -43,7 +43,7 @@ local function play(name)
|
|||||||
|
|
||||||
for chunk in io.lines(filePath, 16 * 1024) do
|
for chunk in io.lines(filePath, 16 * 1024) do
|
||||||
local buffer = decoder(chunk)
|
local buffer = decoder(chunk)
|
||||||
while not speaker.playAudio(buffer) do
|
while not speaker.playAudio(buffer, 3.0) do
|
||||||
os.pullEvent("speaker_audio_empty")
|
os.pullEvent("speaker_audio_empty")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user