Exemplo n.º 1
0
        /// <summary>
        /// Setup the test environment.
        /// </summary>
        /// <param name="game"></param>
        public void SetUp(ICanyonShooterGame game)
        {
            // Create sound system
            sounds = new SoundSystem(game);

            // Load all sounds
            sndFire   = sounds.CreateSound("MFireLoop");
            sndStop   = sounds.CreateSound("MFireStop");
            sndStart  = sounds.CreateSound("MFireStart");
            sndAmmo   = sounds.CreateSound("ReleaseMines");
            sndReload = sounds.CreateSound("Ammo");

            // Set global volumes
            sounds.EffectVolume = 0.8f;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a simple transformable sound emitter.
 /// </summary>
 /// <param name="soundSystem"></param>
 /// <param name="soundName"></param>
 public TestAudio3DEmitter(ISoundSystem soundSystem, string soundName)
     : base(null)
 {
     system           = soundSystem;
     fireSound        = system.CreateSound(soundName);
     fireSound.Parent = this;
 }