mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr1730'
This commit is contained in:
commit
df7480f59c
|
@ -763,7 +763,7 @@ void Core::setAvatar(const QByteArray& data)
|
|||
pic.loadFromData(data);
|
||||
Settings::getInstance().saveAvatar(pic, getSelfId().toString());
|
||||
emit selfAvatarChanged(pic);
|
||||
|
||||
|
||||
AvatarBroadcaster::setAvatar(data);
|
||||
AvatarBroadcaster::enableAutoBroadcast();
|
||||
}
|
||||
|
@ -1329,7 +1329,11 @@ void Core::setNospam(uint32_t nospam)
|
|||
void Core::resetCallSources()
|
||||
{
|
||||
for (ToxGroupCall& call : groupCalls)
|
||||
{
|
||||
for (ALuint source : call.alSources)
|
||||
alDeleteSources(1, &source);
|
||||
call.alSources.clear();
|
||||
}
|
||||
|
||||
for (ToxCall& call : calls)
|
||||
{
|
||||
|
|
|
@ -629,6 +629,8 @@ void Core::leaveGroupCall(int groupId)
|
|||
groupCalls[groupId].active = false;
|
||||
disconnect(groupCalls[groupId].sendAudioTimer,0,0,0);
|
||||
groupCalls[groupId].sendAudioTimer->stop();
|
||||
for (ALuint source : groupCalls[groupId].alSources)
|
||||
alDeleteSources(1, &source);
|
||||
groupCalls[groupId].alSources.clear();
|
||||
Audio::unsuscribeInput();
|
||||
delete groupCalls[groupId].sendAudioTimer;
|
||||
|
|
Loading…
Reference in New Issue
Block a user