public static SoundEffectInstance PlaySound(int type, int x = -1, int y = -1, int Style = 1, float volumeScale = 1f, float pitchOffset = 0f) { if (!IsAudioSupported) { return(null); } return(_legacyPlayer.PlaySound(type, x, y, Style, volumeScale, pitchOffset)); }