Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {...}
- local Songs = {}
- function SongPlayer(I)
- local dfpwm = require "cc.audio.dfpwm"
- local decoder = dfpwm.make_decoder()
- local speaker = peripheral.find("speaker")
- for input in io.lines(Songs[I], 16 * 1024) do
- local decoded = decoder(input)
- rednet.broadcast(textutils.serialize(decoded))
- end
- end
- rednet.open()
- SongPlayer(tArg[1])
Add Comment
Please, Sign In to add comment