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:
parent
e0cac02421
commit
e51c154c20
@ -231,6 +231,8 @@ void Core::sendCallAudio(int callId, ToxAv* toxav)
|
|||||||
alcGetIntegerv(alInDev, ALC_CAPTURE_SAMPLES, sizeof(samples), &samples);
|
alcGetIntegerv(alInDev, ALC_CAPTURE_SAMPLES, sizeof(samples), &samples);
|
||||||
if(samples >= framesize)
|
if(samples >= framesize)
|
||||||
{
|
{
|
||||||
|
qDebug() << "Samples:"<<samples<<", framesize:"<<framesize<<", inDev:"<<alInDev<<", buf:"<<(unsigned long)&buf;
|
||||||
|
|
||||||
memset(buf, 0, framesize*2); // Avoid uninitialized values (Valgrind)
|
memset(buf, 0, framesize*2); // Avoid uninitialized values (Valgrind)
|
||||||
alcCaptureSamples(alInDev, buf, framesize);
|
alcCaptureSamples(alInDev, buf, framesize);
|
||||||
frame = 1;
|
frame = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user