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