Struct PlaybackOptions
Defined in File system.h
Struct Documentation
-
struct PlaybackOptions
Initial per-voice controls; validate before admitting playback.
Public Functions
-
void validate() const
Validate normalized finite volume; boolean looping/paused options require no further validation.
Public Members
-
float volume = 1
Linear normalized gain in[0,1], finite; independent of master gain.
-
bool looping = false
Repeat the source at its end.
-
bool paused = false
Create without starting the playback clock for this voice.
-
bool variable_rate = false
Enable playback-rate controls; default effects avoid the extra resampler latency.
-
void validate() const