nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
sound.h
Go to the documentation of this file.
1#ifndef NANOMMO_CLIENT_SOUND_H_
2#define NANOMMO_CLIENT_SOUND_H_
3
4namespace nanommo {
5
6/// How loud the game is, as the player sets it in the settings window.
8 /// Where the sliders are, from nothing to full.
9 float master = 1.0f;
10 float music = 0.7f;
11 /// The sound effects, apart from the music.
12 float effects = 0.8f;
13 bool muted = false;
14
15 bool operator==(const SoundSettings&) const = default;
16};
17
18/// The gain for a slider at that position. We hear loudness on a logarithmic
19/// scale, so the slider goes through 40 decibels, and its bottom is silence.
20float Gain(float slider);
21
22} // namespace nanommo
23
24#endif // NANOMMO_CLIENT_SOUND_H_
Definition chat.cc:9
float Gain(float slider)
Definition sound.cc:13
How loud the game is, as the player sets it in the settings window.
Definition sound.h:7
float effects
The sound effects, apart from the music.
Definition sound.h:12
float master
Where the sliders are, from nothing to full.
Definition sound.h:9
bool operator==(const SoundSettings &) const =default