|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <soundscape.h>
Classes | |
| struct | Take |
Public Member Functions | |
| Variety (uint32_t seed, float pitch_spread, float volume_spread) | |
| Take | Next (int takes) |
| One of that many takes. | |
Which take of a sound plays next, and how, so that a sound heard again and again doesn't sound like a machine: not the take that played last, a little higher or lower, and at most a little quieter.
Definition at line 37 of file soundscape.h.
| nanommo::Variety::Variety | ( | uint32_t | seed, |
| float | pitch_spread, | ||
| float | volume_spread ) |
The pitch can be off by its spread either way, and the volume down by its spread.
Definition at line 38 of file soundscape.cc.
| Variety::Take nanommo::Variety::Next | ( | int | takes | ) |
One of that many takes.
Definition at line 43 of file soundscape.cc.