Audio_exists - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Notation
Description
Gets whether the given sound resource exists.
Parameters
- sound, index of the sound resource
Return Values
Returns a boolean (true or false) whether the sound resource exists or not.
Example Call
// Demonstrates checking if a sound resource exists or not.
if (audio_exists(snd_shot)
{
// snd_shoot exists
} else {
// snd_shoot does not exist
}
NOTOC