Fixed crash on using NUll Audio Output, fixed possible crash in OpenAL exit and minor changes in cellAudioEventQueue functions.

This commit is contained in:
O1L
2014-03-14 17:53:37 +03:00
parent 50d49141b0
commit b0f6b03c38
4 changed files with 17 additions and 11 deletions
+2
View File
@@ -44,6 +44,8 @@ void OpenALThread::Init()
void OpenALThread::Quit()
{
m_context = alcGetCurrentContext();
m_device = alcGetContextsDevice(m_context);
alcMakeContextCurrent(nullptr);
alcDestroyContext(m_context);
alcCloseDevice(m_device);