1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-01 10:07:56 +00:00

Add speaker support to the documentation website

Happy to pick a different piece of audio, but this seemed like a fun one
to me.
This commit is contained in:
Jonathan Coates
2021-12-21 22:20:45 +00:00
parent f470478a0f
commit afd82fbf1f
14 changed files with 3160 additions and 34 deletions

View File

@@ -143,7 +143,7 @@ streams, or use different decoders for the same stream, the resulting audio may
@usage Reads "data/example.dfpwm" in blocks of 16KiB (the speaker can accept a maximum of 128×1024 samples), decodes
them and then plays them through the speaker.
```lua
```lua {data-peripheral=speaker}
local dfpwm = require "cc.audio.dfpwm"
local speaker = peripheral.find("speaker")