natiny.audio.source_stop

Lua
natiny.audio.source_stop(source)

Stops a source and resets its playback position to the beginning.

Parameters

Name Type Description
source number Source handle

Example

Lua
natiny.audio.source_stop(source)

Notes

  • The next natiny.audio.source_play begins at 0.0 seconds.
  • Invalid and non-source handles are ignored.