Pause

Constructor:

Pause()

Description

Pauses the currently playing audio.

Examples

Create an Audiosource player. Assign the audio path to the player to play, and then pause playing after 2 seconds.

local AS = RWObject.Create("AudioSource") -- create a player
AS.PlayOnAwake =false 
AS.AudioClip = "rwid://L1vtZTBThT1RCvBVdK" -- assign a path
AS:Play() -- play the audio
wait(2) -- wait 2
AS:Pause() -- pause the audio