natiny.audio.source_pause

Lua
natiny.audio.source_pause(source)

Pauses a source at its current playback position.

Parameters

Name Type Description
source number Source handle

Example

Lua
natiny.audio.source_pause(source)

Notes

  • natiny.audio.source_play resumes from the paused position; natiny.audio.source_stop rewinds to the beginning.
  • Pausing a stopped, paused, invalid or non-source handle does nothing.