natiny_audio_source_play

C
void natiny_audio_source_play(NatinyAudioSource source);

Starts a stopped source or resumes a paused source.

Parameters

Name Type Description
source NatinyAudioSource Source handle

Example

C
natiny_audio_source_play(source);

Notes

  • A non-looping source that reached its end starts again from the beginning.
  • Calling this for an already playing source keeps its current position.
  • A source with an invalid or destroyed clip remains silent, and natiny_audio_source_get_playing returns false for it.
  • Invalid and non-source handles are ignored.