1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-31 09:37: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

@@ -12,7 +12,7 @@ see: speaker.playAudio To play audio using the speaker
This uses @{io.lines} to read audio data in blocks of 16KiB from "example_song.dfpwm", and then attempts to play it
using @{speaker.playAudio}. If the speaker's buffer is full, it waits for an event and tries again.
```lua
```lua {data-peripheral=speaker}
local dfpwm = require("cc.audio.dfpwm")
local speaker = peripheral.find("speaker")