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:
parent
28b1678a88
commit
92ff16ffb6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user