You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Game crashes on startup if there is no audio playback device.
To Reproduce
Steps to reproduce the behavior:
Disable your sound card.
Start up the game.
Expected behavior
The game starts with no music.
Actual behavior
Error message:
TypeInitializationException occurred at 5/26/2022 9:36:20 PM:
System.TypeInitializationException: The type initializer for 'FrEee.WinForms.Objects.Music' threw an exception.
---> NAudio.MmException: BadDeviceId calling waveOutOpen
at NAudio.Wave.WaveOutEvent.Init(IWaveProvider waveProvider)
at NAudio.Wave.WaveExtensionMethods.Init(IWavePlayer wavePlayer, ISampleProvider sampleProvider, Boolean convertTo16Bit)
at FrEee.WinForms.Objects.Music..cctor() in C:\Users\edkol\source\repos\FrEee\FrEee.WinForms\Objects\Music.cs:line 31
--- End of inner exception stack trace ---
at FrEee.WinForms.Objects.Music.setVolume(Single volume) in C:\Users\edkol\source\repos\FrEee\FrEee.WinForms\Objects\Music.cs:line 95
at FrEee.WinForms.Forms.MainMenuForm.MainMenuForm_Load(Object sender, EventArgs e) in C:\Users\edkol\source\repos\FrEee\FrEee.WinForms\Forms\MainMenuForm.cs:line 310
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
Game crashes on startup if there is no audio playback device.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The game starts with no music.
Actual behavior
Error message:
TypeInitializationException occurred at 5/26/2022 9:36:20 PM:
System.TypeInitializationException: The type initializer for 'FrEee.WinForms.Objects.Music' threw an exception.
---> NAudio.MmException: BadDeviceId calling waveOutOpen
at NAudio.Wave.WaveOutEvent.Init(IWaveProvider waveProvider)
at NAudio.Wave.WaveExtensionMethods.Init(IWavePlayer wavePlayer, ISampleProvider sampleProvider, Boolean convertTo16Bit)
at FrEee.WinForms.Objects.Music..cctor() in C:\Users\edkol\source\repos\FrEee\FrEee.WinForms\Objects\Music.cs:line 31
--- End of inner exception stack trace ---
at FrEee.WinForms.Objects.Music.setVolume(Single volume) in C:\Users\edkol\source\repos\FrEee\FrEee.WinForms\Objects\Music.cs:line 95
at FrEee.WinForms.Forms.MainMenuForm.MainMenuForm_Load(Object sender, EventArgs e) in C:\Users\edkol\source\repos\FrEee\FrEee.WinForms\Forms\MainMenuForm.cs:line 310
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: