mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Add al delete to group leave
This commit is contained in:
parent
fb707fe1f1
commit
bd2f8b5db5
|
@ -1326,10 +1326,8 @@ void Core::resetCallSources()
|
||||||
{
|
{
|
||||||
for (ToxGroupCall& call : groupCalls)
|
for (ToxGroupCall& call : groupCalls)
|
||||||
{
|
{
|
||||||
for (QPair<int, ALuint> alSources : alSources)
|
for (QPair<int, ALuint> alSources : call)
|
||||||
{
|
|
||||||
alDeleteSources(1, alSources.second);
|
alDeleteSources(1, alSources.second);
|
||||||
}
|
|
||||||
call.alSources.clear();
|
call.alSources.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -629,6 +629,8 @@ void Core::leaveGroupCall(int groupId)
|
||||||
groupCalls[groupId].active = false;
|
groupCalls[groupId].active = false;
|
||||||
disconnect(groupCalls[groupId].sendAudioTimer,0,0,0);
|
disconnect(groupCalls[groupId].sendAudioTimer,0,0,0);
|
||||||
groupCalls[groupId].sendAudioTimer->stop();
|
groupCalls[groupId].sendAudioTimer->stop();
|
||||||
|
for (QPair<int, ALuint> alSources : groupCalls[groupId])
|
||||||
|
alDeleteSources(1, alSources.second);
|
||||||
groupCalls[groupId].alSources.clear();
|
groupCalls[groupId].alSources.clear();
|
||||||
Audio::unsuscribeInput();
|
Audio::unsuscribeInput();
|
||||||
delete groupCalls[groupId].sendAudioTimer;
|
delete groupCalls[groupId].sendAudioTimer;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user