6#include <aegis2d/audio/export.hpp>
48 void save(core::Config& settings,
std::string_view section) const;
56 void load(const core::Config& settings,
std::string_view section);
Audio output: sounds loaded once, then played on a channel, on top of SDL3.
JSON configuration with dotted-path lookups, which can be changed and saved.
Sound effects and music on top of SDL3 (client only).
Definition audio.hpp:17
Channel
Group of sounds whose volume is set together.
Definition audio.hpp:28
Definition endpoint.hpp:85
Positions of the three volume sliders of a settings menu, from 0 (silent) to 1.
Definition volume.hpp:18
float slider(Channel channel) const noexcept
Slider of a channel.
Volumes clamped() const noexcept
The same volumes, each one brought into [0, 1]; not-a-number becomes 1.
float gain(Channel channel) const noexcept
Gain applied to the samples of a channel.