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)
|
if (devices == 0)
|
||||||
{
|
{
|
||||||
Logger.LogError("No audio devices found!");
|
Logger.LogError("No audio devices found!");
|
||||||
Handle = IntPtr.Zero;
|
|
||||||
FAudio.FAudio_Release(Handle);
|
FAudio.FAudio_Release(Handle);
|
||||||
|
Handle = IntPtr.Zero;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue