play-dfpwm, a simple utility to play dfpwm files

Started by inteltoasters, Oct 10, 2025, 11:29 PM

Previous topic - Next topic

inteltoasters

Play dfpwm files on your ComputerCraft computer.

Usage:
play-dfpwm <file name> (no extension)

Download:
wget https://raw.githubusercontent.com/inteltoasters/playdfpwm/refs/heads/main/play-dfpwm.lua
I love ComputerCraft.

Kestin

Nice! My I suggest doing some error checking?

Ex: add if type(speaker) ~= "table" then error("No speaker connected!", 0) end
and check if (arg[1] .. ".dfpwm") is a valid path!

Otherwise you could be running into error and have a hard time finding and fixing them...