Beispiel #1
0
        public WasapiAudioRecorder()
        {
            wasapiAudio = new WasapiAudio();

            retrieveAudioTimer          = new DispatcherTimer();
            retrieveAudioTimer.Interval = TimeSpan.FromMilliseconds(33);
            retrieveAudioTimer.Tick    += RetrieveAudio;
        }
Beispiel #2
0
        public WasapiAudioRecorder()
        {
            wasapiAudio = new WasapiAudio();

            intervalTimer          = new DispatcherTimer();
            intervalTimer.Interval = TimeSpan.FromMilliseconds(33);
            intervalTimer.Tick    += new EventHandler(intervalTimer_Tick);
        }
        public WasapiAudioRecorder()
        {
            wasapiAudio = new WasapiAudio();

            intervalTimer = new DispatcherTimer();
            intervalTimer.Interval = TimeSpan.FromMilliseconds(33);
            intervalTimer.Tick += new EventHandler(intervalTimer_Tick);
        }
        /// <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();
        }
Beispiel #5
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();
        }
Beispiel #6
0
 private void InitializeWasapiCapture()
 {
     wasapiAudio = new WasapiAudio(captureMode, spectrumSize, scalingMode, minFreq, maxFreq, ReceiveSpectrum);
 }