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

Add debug output

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-15 16:28:43 +01:00
parent e0cac02421
commit e51c154c20
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -231,6 +231,8 @@ void Core::sendCallAudio(int callId, ToxAv* toxav)
alcGetIntegerv(alInDev, ALC_CAPTURE_SAMPLES, sizeof(samples), &samples);
if(samples >= framesize)
{
qDebug() << "Samples:"<<samples<<", framesize:"<<framesize<<", inDev:"<<alInDev<<", buf:"<<(unsigned long)&buf;
memset(buf, 0, framesize*2); // Avoid uninitialized values (Valgrind)
alcCaptureSamples(alInDev, buf, framesize);
frame = 1;