|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include "client/synth.h"#include <algorithm>#include <cmath>#include <cstddef>#include <numbers>Go to the source code of this file.
Namespaces | |
| namespace | nanommo |
Functions | |
| float | nanommo::Envelope (float t, float attack, float decay) |
| int | nanommo::SamplesIn (float seconds) |
| The seconds, as a count of samples. | |
| void | nanommo::Mix (Samples &mix, const Samples &sound, float at, float gain) |
| float | nanommo::Peak (const Samples &samples) |
| The loudest sample, whichever way it goes. | |
| void | nanommo::Normalize (Samples &samples, float peak) |
| Louder or quieter, so that the loudest sample is at the peak. | |
| void | nanommo::FadeOut (Samples &samples) |
| void | nanommo::Limit (Samples &samples) |