|
Aegis2D
Modular C++26 2D game engine for networked games
|
How EventSounds plays the sound of an event. More...
#include <aegis2d/audio/event_sounds.hpp>
Public Attributes | |
| Channel | channel = Channel::Effects |
| Channel of the sound, hence its volume. | |
| std::chrono::milliseconds | min_interval {50} |
| Shortest time between two starts of the sound by this rule: events published sooner are not heard again, so ten enemies destroyed at once sound like one explosion instead of one explosion ten times louder. 0 plays every event. | |
How EventSounds plays the sound of an event.
| Channel aegis2d::audio::SoundOptions::channel = Channel::Effects |
Channel of the sound, hence its volume.
| std::chrono::milliseconds aegis2d::audio::SoundOptions::min_interval {50} |
Shortest time between two starts of the sound by this rule: events published sooner are not heard again, so ten enemies destroyed at once sound like one explosion instead of one explosion ten times louder. 0 plays every event.