|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <cstdint>#include <vector>Go to the source code of this file.
Classes | |
| class | nanommo::Noise |
| class | nanommo::Filter |
| struct | nanommo::Filter::Out |
| class | nanommo::Oscillator |
Namespaces | |
| namespace | nanommo |
Typedefs | |
| using | nanommo::Samples = std::vector<float> |
| One channel of sound, at kRate. | |
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) |
Variables | |
| constexpr int | nanommo::kRate = 44100 |