PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Resume

Resumes the Sound. Sets Sound/Playing to true. Does not alter Sound/TimePosition and thus can be used to resume the playback of a sound stopped using Sound/Pause.

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.