// deinitialize
internal static void Deinitialize()
{
if (OpenAlContext != ContextHandle.Zero)
{
SoundManager.StopAllSounds(true);
SoundManager.UnuseAllSoundsBuffers();
Alc.MakeContextCurrent(ContextHandle.Zero);
Alc.DestroyContext(OpenAlContext);
OpenAlContext = ContextHandle.Zero;
}
if (OpenAlDevice != IntPtr.Zero)
{
Alc.CloseDevice(OpenAlDevice);
OpenAlDevice = IntPtr.Zero;
}
}