Ballz.Sound.SoundControl.GetSound C# (CSharp) Method

GetSound() public method

public GetSound ( string name ) : SoundEffect
name string
return Microsoft.Xna.Framework.Audio.SoundEffect
        public SoundEffect GetSound(string name)
        {
            if (!SoundsEnabled)
                return null;

            SoundEffect sound;
            if(!loadedSounds.TryGetValue(name, out sound))
                sound = LoadSound(name);

            return sound;
        }