Update audiohandler.cpp

merge-requests/5/head
Phil Taylor 2021-05-28 18:13:08 +01:00
rodzic ba714adb38
commit 3db187e0a5
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -180,6 +180,11 @@ int audioHandler::readData(void* outputBuffer, void* inputBuffer, unsigned int n
memcpy(buffer + sentlen, tempBuf.data.constData() + tempBuf.sent, send);
tempBuf.sent = tempBuf.sent + send;
sentlen = sentlen + send;
if (tempBuf.sent != tempBuf.data.length())
{
// We still don't have enough buffer space for this?
return 0;
}
//qDebug(logAudio()) << "Adding partial:" << send;
}