1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-02 22:53:15 +00:00

Fixed two typos in dfpwm.lua (#2272)

This commit is contained in:
Zirunis
2025-08-27 07:47:42 +02:00
committed by GitHub
parent 9e233a916f
commit a683697e8c

View File

@@ -8,8 +8,8 @@ Convert between streams of DFPWM audio data and a list of amplitudes.
DFPWM (Dynamic Filter Pulse Width Modulation) is an audio codec designed by GreaseMonkey. It's a relatively compact
format compared to raw PCM data, only using 1 bit per sample, but is simple enough to encode and decode in real time.
Typically DFPWM audio is read from [the filesystem][`fs.ReadHandle`] or a [a web request][`http.Response`] as a string,
and converted a format suitable for [`speaker.playAudio`].
Typically DFPWM audio is read from [the filesystem][`fs.ReadHandle`] or [a web request][`http.Response`] as a string,
and converted to a format suitable for [`speaker.playAudio`].
## Encoding and decoding files
This module exposes two key functions, [`make_decoder`] and [`make_encoder`], which construct a new decoder or encoder.