public WasapiAudioRecorder() { wasapiAudio = new WasapiAudio(); retrieveAudioTimer = new DispatcherTimer(); retrieveAudioTimer.Interval = TimeSpan.FromMilliseconds(33); retrieveAudioTimer.Tick += RetrieveAudio; }
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(); }
/// <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(); }
private void InitializeWasapiCapture() { wasapiAudio = new WasapiAudio(captureMode, spectrumSize, scalingMode, minFreq, maxFreq, ReceiveSpectrum); }