Audio.TogglePlay

Audio.TogglePlay ( 

number Channel )

Example 1

Audio.TogglePlay(CHANNEL_BACKGROUND);

Toggles the sound in the background audio channel. If the sound is on, it will be paused; or if it is paused, it will start to play again.

Example 2

Audio.TogglePlay(CHANNEL_USER1);

Toggles the sound in user channel 1 between playing and paused.

See also: Related Actions