mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix compile issues
This commit is contained in:
parent
399f2c9fef
commit
992e648f64
|
@ -1330,8 +1330,8 @@ void Core::resetCallSources()
|
|||
{
|
||||
for (ToxGroupCall& call : groupCalls)
|
||||
{
|
||||
for (QPair<int, ALuint> alSources : call)
|
||||
alDeleteSources(1, alSources.second);
|
||||
for (QHash<int, ALuint>::iterator i = call.alSources.begin(); i != call.alSources.end(); ++i)
|
||||
alDeleteSources(1, &i.value());
|
||||
call.alSources.clear();
|
||||
}
|
||||
|
||||
|
|
|
@ -629,8 +629,8 @@ void Core::leaveGroupCall(int groupId)
|
|||
groupCalls[groupId].active = false;
|
||||
disconnect(groupCalls[groupId].sendAudioTimer,0,0,0);
|
||||
groupCalls[groupId].sendAudioTimer->stop();
|
||||
for (QPair<int, ALuint> alSources : groupCalls[groupId])
|
||||
alDeleteSources(1, alSources.second);
|
||||
for (QHash<int, ALuint>::iterator i = groupCalls[groupId].alSources.begin(); i != groupCalls[groupId].alSources.end(); ++i)
|
||||
alDeleteSources(1, &i.value());
|
||||
groupCalls[groupId].alSources.clear();
|
||||
Audio::unsuscribeInput();
|
||||
delete groupCalls[groupId].sendAudioTimer;
|
||||
|
|
Loading…
Reference in New Issue
Block a user