From e558b31b2b0195a210c9a542df07aae1460178f4 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Tue, 21 Dec 2021 22:25:16 +0000 Subject: [PATCH] Fix some typos in a dfpwm example --- .../computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua b/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua index 48dfac20e..a3fa21d33 100644 --- a/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua +++ b/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua @@ -148,9 +148,9 @@ local dfpwm = require "cc.audio.dfpwm" local speaker = peripheral.find("speaker") local decoder = dfpwm.make_decoder() -for input in io.lines("data/example.dfpwm", 16 * 1024 * 2) do +for input in io.lines("data/example.dfpwm", 16 * 1024) do local decoded = decoder(input) - while not speaker.playAudio(output) do + while not speaker.playAudio(decoded) do os.pullEvent("speaker_audio_empty") end end