natiny.audio.source_play

Lua
natiny.audio.source_play(source)

Starts a stopped source or resumes a paused source.

Parameters

Name Type Description
source number Source handle

Example

Lua
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.