Gravitation.SoundHandler.SoundHandler C# (CSharp) Method

SoundHandler() public method

public SoundHandler ( Microsoft.Xna.Framework.Content.ContentManager cm ) : System
cm Microsoft.Xna.Framework.Content.ContentManager
return System
        public SoundHandler(ContentManager cm)
        {
            this.mCm = cm;
            mSoundEffects = new Dictionary<Sounds, SoundEffectInstance>();
            mAssetNames = new Dictionary<Sounds, string>();

            mSoundEffects.Add(Sounds.SHIP_CRASH1,null); // load sounds on demand
            mSoundEffects.Add(Sounds.SHIP_FIRE1,null);  // later if somebody can be bothered we could load only the sounds that are needed
            mSoundEffects.Add(Sounds.MOVE_MENU, null); // based on what ships have been chosen the map and so on. because this way will likley give lag.. but we will see
            mSoundEffects.Add(Sounds.SHIP_THRUST1, null);

            mAssetNames.Add(Sounds.SHIP_CRASH1, "Sounds/explosion_2");
            mAssetNames.Add(Sounds.SHIP_FIRE1, "Sounds/strela");
            mAssetNames.Add(Sounds.SHIP_THRUST1, "Sounds/plyn1");
            mAssetNames.Add(Sounds.MOVE_MENU, "Sounds/click");

            SoundEffect.MasterVolume = 0.2f;
        }