Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ setLooping()

void Flint::Audio::setLooping ( int id,
bool loop )

Change the looping state of a currently playing sound.

If the sound is playing, it is restarted with the new loop flag while preserving the current gain and pitch settings.

Parameters
idSound ID to modify.
looptrue to loop indefinitely, false to play once.