public override SoundEffect GetRandomSound() { return(this.IsTrackable ? SoundEngine.GetTrackableSoundByStyleId(this.Style) : (SoundEffect)null); }
public static void PlaySound(int type, Vector2 position, int style = 1) { SoundEngine.PlaySound(type, (int)position.X, (int)position.Y, style, 1f, 0.0f); }
public static SoundEffectInstance PlaySound( LegacySoundStyle type, Vector2 position) { return(SoundEngine.PlaySound(type, (int)position.X, (int)position.Y)); }
public static void Initialize() { SoundEngine.IsAudioSupported = SoundEngine.TestAudioSupport(); }