PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Stop

Stops the Sound. Sets Sound/Playing to false then sets Sound/TimePosition to 0.

The impact of the different sound functions on Sound/Playing and Sound/TimePosition are shown below.

Function Sound.Playing Sound.TimePosition
Sound:Play() True Last value set in Lua (default 0)
Sound:Pause() False -
Sound:Resume() True -
Sound:Stop() False 0

Returns

Return Type Summary

Code Samples


Sound Functions

This sample gives a simple demonstration of what each of the Sound functions (Sound.Play, Sound.Stop, Sound.Pause and Sound.Resume) do to Sound.Playing and Sound.TimePosition.