Example #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public AudioManager()
        {
            // Timer to simulate the XNA Framework game loop (Microphone in
            // XnaAudio.cs is from the XNA Framework). Timer is also used to
            // monitor the state of audio playback.
            DispatcherTimer dt = new DispatcherTimer();
            dt.Interval = TimeSpan.FromMilliseconds(33);
            dt.Tick += new EventHandler(dt_Tick);
            dt.Start();

            xnaAudio = new XnaAudio();
            wasapiAudio = new WasapiAudio();
        }
Example #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public AudioManager()
        {
            // Timer to simulate the XNA Framework game loop (Microphone in
            // XnaAudio.cs is from the XNA Framework). Timer is also used to
            // monitor the state of audio playback.
            DispatcherTimer dt = new DispatcherTimer();

            dt.Interval = TimeSpan.FromMilliseconds(33);
            dt.Tick    += new EventHandler(dt_Tick);
            dt.Start();

            xnaAudio    = new XnaAudio();
            wasapiAudio = new WasapiAudio();
        }