You just call it apparently

This commit is contained in:
Casey 2023-12-18 18:29:28 +03:00
parent a396ab67ca
commit cdaa2c210d
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ for i = 1, buffer_size do
buffer[i] = 0
end
local decoder = dfpwm.make_decoder()
local decode = dfpwm.make_decoder()
while true do
local chunk = req.read(buffer_size)
if not chunk then
@ -39,7 +39,7 @@ while true do
-- buffer[i] = string.byte(chunk, i) - 128
--end
local buffer = decoder.decode(chunk)
local buffer = decode(chunk)
while not speaker.playAudio(buffer) do
os.pullEvent("speaker_audio_empty")