sound_get_kind(ind)

From ENIGMA

Jump to: navigation, search

Description

Returns the kind of the sound with the given index .

Gets the kind of the given sound and returns the result.

Kind Description
0 Normal
1 Background
2 3D
3 Multiple media player

Parameters

Parameter Data Type Description
ind integer index of the sound to get the kind of

Return Values

integer: Returns the kind of the sound.

Example Call

// demonstrates checking a sounds kind
switch (sound_get_kind(snd_shoot)) {
  case 0:
    // normal
    break;
  case 1:
    // Background
    break;
  case 2:
    // 3D
    break;
  case 3:
    // multi-media
    break;
}
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox