Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::audio::SoundOptions Struct Reference

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.
 

Detailed Description

How EventSounds plays the sound of an event.

Member Data Documentation

◆ channel

Channel aegis2d::audio::SoundOptions::channel = Channel::Effects

Channel of the sound, hence its volume.

◆ min_interval

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.


The documentation for this struct was generated from the following file: