# getSoundId method

int getSoundId (String key)

## Implementation

    static int getSoundId(String key) {
      key = key.toUpperCase();
      int soundId = -1;
      Map<String, Object> soundMap;
      if (defaultTargetPlatform == TargetPlatform.android) {
        soundMap = SOUND_MAP["android"];
      } else if (defaultTargetPlatform == TargetPlatform.iOS) {
        soundMap = SOUND_MAP["ios"];
      }
      if (soundMap != null && soundMap.containsKey(key)) {
          soundId = soundMap[key];
      }
      return soundId;
    }