Example #1
0
        public void TestSoundEmitter()
        {
            var engine = new LocalGame();

            engine.AddSimulator(new AudioSimulator());

            var emitter = new SoundEmitter();

            emitter.Sound   = SoundFactory.Load("Core\\TestSound.wav");
            emitter.Playing = true;
            emitter.Loop    = true;


            emitter         = new SoundEmitter();
            emitter.Sound   = SoundFactory.Load("Core\\TestSoundAmbient.wav");
            emitter.Playing = true;

            engine.Run();
        }