summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1400f2a..f9ad615 100644
--- a/README.md
+++ b/README.md
@@ -434,6 +434,13 @@ while declared, and the next frame's `input.microphone` holds what it heard
`host.samples(audio)` gives a loaded sound's samples, mono at
`input.sample_rate`.
+The host sums the voices and limits the sum, sample by sample: below
+0.75 (-2.5 dBFS) it plays at true volume, to the bit; above, it bends
+smoothly (same value and slope at 0.75) toward 1 and never past it, so a
+full-scale peak plays at 0.875 and any number of loud voices stays
+bounded. Streams are not limited: SDL adds each, as pushed, to the voice
+mix and clips the total at ±1.
+
Sounds decode with single-file C libraries in `vendor/` (dr_wav, dr_flac,
stb_vorbis): WAV, FLAC and Ogg Vorbis, chosen by content.