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:
@@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user