1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Add OpenAL cleanup

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-08-28 16:02:32 +02:00
parent 28b1678a88
commit 92ff16ffb6

View File

@ -173,6 +173,9 @@ void Core::cleanupCall(int callId)
calls[callId].audioInput->stop();
if (calls[callId].videoEnabled)
Widget::getInstance()->getCamera()->unsuscribe();
alcMakeContextCurrent(nullptr);
alcDestroyContext(calls[callId].alContext);
alcCloseDevice(calls[callId].alOutDev);
}
void Core::playCallAudio(ToxAv*, int32_t callId, int16_t *data, int samples, void *user_data)