PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
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.