nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Variety Class Reference

#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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ Variety()

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.

Member Function Documentation

◆ Next()

Variety::Take nanommo::Variety::Next ( int takes)

One of that many takes.

Definition at line 43 of file soundscape.cc.


The documentation for this class was generated from the following files: