Skip to reading
GDScript Programming & Godot

PauseSound()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Sound: Pause

Pause effects selected by channel.

Source table from PauseSound(), page 199
Option key / fieldMeaning and inputDefault
Channel / ID (empty = all) channelSound-effect channel name. Reuse it to pause, stop or fade that sound group. May be blank.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await PauseSound({"channel": "puzzle"})

In use. Pause a repeating machine sound during an inspection that freezes its motion. Pausing is reversible; stopping ends playback instead.

ResumeSound()#

Sound: Resume

Resume paused effects selected by channel.

Source table from PauseSound(), page 199
Option key / fieldMeaning and inputDefault
Channel / ID (empty = all) channelSound-effect channel name. Reuse it to pause, stop or fade that sound group. May be blank.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ResumeSound({"channel": "puzzle"})

In use. Resume the machine channel together with the machine's motion. It resumes existing players; it does not choose or reload an audio asset.

Page 199 of 378Permalink
Go to page