public void PlayEffect(Sound.Effects effect) { this.Stop(); MaxDb = Sound.VolumeMath(Session.session.sfxVolume); LoadEffect(effect); this.Play(); }
public void LoadEffect(Sound.Effects effect) { string soundFile = Sound.EffectFile(effect); this.Stream = (AudioStreamSample)GD.Load(soundFile); }
public void PlayEffect(Sound.Effects effect) { this.Stop(); LoadEffect(effect); this.Play(); }