public void PlaySound(string name)
{
var sndEffect = GetSound(name);
if(sndEffect != null)
{
SoundEffectInstance soundInstance = sndEffect.CreateInstance();
soundInstance.Volume = (float)Game.GameSettings.MasterVolume.Value / (float)100;
soundInstance.Play();
}
}