Last active
December 20, 2015 01:29
-
-
Save Fahrradkette/6049434 to your computer and use it in GitHub Desktop.
Closes actual device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void OpenAlCloseDevice() | |
{ | |
StopAllSounds(); | |
IntPtr Context, Device; | |
Al.alDeleteBuffers(1, ref buffer); | |
Al.alDeleteSources(1, ref source); | |
Context = Alc.alcGetCurrentContext(); | |
Device = Alc.alcGetContextsDevice(Context); | |
Alc.alcMakeContextCurrent(IntPtr.Zero); | |
Alc.alcDestroyContext(Context); | |
Alc.alcCloseDevice(Device); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment