vatis-project / vatis

Virtual Automated ATIS Generator for VATSIM
https://docs.vatis.clowd.io
GNU General Public License v3.0
37 stars 17 forks source link

Unhandled exception when attempting to play back recorded ATIS audio #148

Open neilenns opened 1 year ago

neilenns commented 1 year ago

Version 4.0.0-beta.14

To reproduce:

  1. Open the RECORD ATIS dialog
  2. Hit the Start Recording button and record some audio
  3. Hit the Stop Recording button
  4. Hit Listen

Result:

NAudio.MmException: AlreadyAllocated calling waveOutOpen
   at NAudio.MmException.Try(MmResult result, String function)
   at NAudio.Wave.WaveOutEvent.Init(IWaveProvider waveProvider)
   at Vatsim.Vatis.UI.Dialogs.RecordAtisDialog.btnListen_Click(Object sender, EventArgs e) in Vatsim.Vatis\UI\Dialogs\RecordAtisDialog.cs:line 240
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)