예제 #1
0
 public void PlayEffect(Sound.Effects effect)
 {
     this.Stop();
     MaxDb = Sound.VolumeMath(Session.session.sfxVolume);
     LoadEffect(effect);
     this.Play();
 }
예제 #2
0
    public void LoadEffect(Sound.Effects effect)
    {
        string soundFile = Sound.EffectFile(effect);

        this.Stream = (AudioStreamSample)GD.Load(soundFile);
    }
예제 #3
0
 public void PlayEffect(Sound.Effects effect)
 {
     this.Stop();
     LoadEffect(effect);
     this.Play();
 }