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

Add some debug messages

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-14 20:55:32 +01:00
parent c7d6882479
commit d99c682e00
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -622,12 +622,20 @@ void Core::joinGroupCall(int groupId)
alcCaptureStart(alInDev);
// Go
ToxAv* toxav = Core::getInstance()->toxav;
Core* core = Core::getInstance();
ToxAv* toxav = core->toxav;
qWarning()<<"Core is "<<(long)core<<", toxav is "<<(long)toxav;
groupCalls[groupId].sendAudioTimer = new QTimer();
groupCalls[groupId].active = true;
groupCalls[groupId].sendAudioTimer->setInterval(5);
groupCalls[groupId].sendAudioTimer->setSingleShot(true);
connect(groupCalls[groupId].sendAudioTimer, &QTimer::timeout, [=](){sendGroupCallAudio(groupId,toxav);});
connect(groupCalls[groupId].sendAudioTimer, &QTimer::timeout, [=]()
{
qWarning()<<"In the lambda toxav is "<<(long)toxav;
sendGroupCallAudio(groupId,toxav);}
);
groupCalls[groupId].sendAudioTimer->start();
}