Skip to reading
PCA Script Programming

stop_sound()

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

Stop Sound | Action ID: StopSound

Stop effects selected by channel.

Source table from stop_sound(), page 194
Option key / fieldMeaning and accepted inputDefault
Channel / ID channelSound-effect channel name. Reuse it to pause, stop or fade that sound group.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
stop_sound({"channel": "puzzle"})

In use. Stop the machine channel when the power is cut. Use a specific channel so unrelated effects can continue. This does not stop music or voice.

pause_sound()#

Sound: Pause | Action ID: PauseSound

Pause effects selected by channel.

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

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
pause_sound({"channel": "puzzle"})

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

Page 194 of 357Permalink
Go to page