#include <sound.hpp>
Definition at line 109 of file sound.hpp.
◆ volume()
| constexpr sound::volume::volume |
( |
float |
factor | ) |
|
|
inlineexplicitconstexpr |
◆ as_percent()
| constexpr float sound::volume::as_percent |
( |
| ) |
const |
|
inlineconstexpr |
◆ from_percent()
| constexpr static volume sound::volume::from_percent |
( |
float |
percentage | ) |
|
|
inlinestaticconstexpr |
◆ operator float()
| constexpr sound::volume::operator float |
( |
| ) |
const |
|
inlineconstexpr |
Implicit conversion for use with SDL.
Definition at line 124 of file sound.hpp.
References gain.
◆ operator*()
| constexpr auto sound::volume::operator* |
( |
const volume & |
other | ) |
const |
|
inlineconstexpr |
◆ operator+()
| constexpr auto sound::volume::operator+ |
( |
const volume & |
other | ) |
const |
|
inlineconstexpr |
◆ operator-()
| constexpr auto sound::volume::operator- |
( |
const volume & |
other | ) |
const |
|
inlineconstexpr |
◆ operator/()
| constexpr auto sound::volume::operator/ |
( |
const volume & |
other | ) |
const |
|
inlineconstexpr |
◆ gain
| float sound::volume::gain {1.0} |
|
private |
The documentation for this class was generated from the following file: