Audio_is_paused - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Gets whether a sound resource or sound channel is paused. When you play sounds you are returned an id for the channel the sound is playing in, if you hold on to this you can use it to check if that specific instance of a sound is playing. This function will also check if sound resources exist. If either the resource or channel exist, the function returns true.

Parameters

Parameter Data Type Description
sound integer id of the sound resource or sound channel

Return Values

boolean: Returns whether the sound resource or sound channel is paused.

Example Call

// demonstrates checking if a sound is playing
if (audio_is_paused(snd_shot)) {
  // sound is playing
} else {
  // sound is not playing
}

NOTOC