forked from MoonsideGames/MoonWorks
Fix crash when no audio device found
parent
474b8fe37d
commit
751b8310ce
|
@ -46,8 +46,8 @@ namespace MoonWorks.Audio
|
|||
if (devices == 0)
|
||||
{
|
||||
Logger.LogError("No audio devices found!");
|
||||
Handle = IntPtr.Zero;
|
||||
FAudio.FAudio_Release(Handle);
|
||||
Handle = IntPtr.Zero;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue