natiny_audio_source_set_loop
void natiny_audio_source_set_loop(NatinyAudioSource source, bool loop);
Sets whether a source repeats after reaching its end.
Parameters
| Name | Type | Description |
|---|---|---|
source |
NatinyAudioSource |
Source handle |
loop |
bool |
Whether playback should repeat |
Example
natiny_audio_source_set_loop(source, true);