Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game crashes on startup if there is no audio playback device #217

Closed
ekolis opened this issue May 27, 2022 · 0 comments · Fixed by #218
Closed

Game crashes on startup if there is no audio playback device #217

ekolis opened this issue May 27, 2022 · 0 comments · Fixed by #218
Labels
bug NAGOT GICK FEL - Something went wrong!
Milestone

Comments

@ekolis
Copy link
Owner

ekolis commented May 27, 2022

Describe the bug
Game crashes on startup if there is no audio playback device.

To Reproduce
Steps to reproduce the behavior:

  1. Disable your sound card.
  2. 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

@ekolis ekolis added the bug NAGOT GICK FEL - Something went wrong! label May 27, 2022
@ekolis ekolis added this to the alpha-10 milestone May 27, 2022
@ekolis ekolis added this to To do in winforms-gui via automation May 27, 2022
@ekolis ekolis closed this as completed May 30, 2022
winforms-gui automation moved this from To do to Done May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug NAGOT GICK FEL - Something went wrong!
Projects
winforms-gui
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant