kopia lustrzana https://gitlab.com/eliggett/wfview
Don't block until audio buffer has space
rodzic
2c1272de66
commit
bab77ebaba
|
@ -451,13 +451,13 @@ qint64 audioHandler::writeData(const char* data, qint64 nBytes)
|
||||||
tempBuf.sent = tempBuf.sent + send;
|
tempBuf.sent = tempBuf.sent + send;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ringBuf->write(tempBuf);
|
//ringBuf->write(tempBuf);
|
||||||
/*
|
|
||||||
if (!ringBuf->try_write(tempBuf))
|
if (!ringBuf->try_write(tempBuf))
|
||||||
{
|
{
|
||||||
qDebug(logAudio()) << "outgoing audio buffer full!";
|
qDebug(logAudio()) << "outgoing audio buffer full!";
|
||||||
break;
|
break;
|
||||||
} */
|
}
|
||||||
tempBuf.data.clear();
|
tempBuf.data.clear();
|
||||||
tempBuf.sent = 0;
|
tempBuf.sent = 0;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue