Restart the device automatically if stuck with read stream errors

This commit is contained in:
vsonnier
2017-08-13 22:14:12 +02:00
parent c64baab99d
commit acc6d2a31d
3 changed files with 47 additions and 7 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ static int audioCallback(void *outputBuffer, void * /* inputBuffer */, unsigned
}
if (status) {
std::cout << "Audio buffer underflow.." << (src->underflowCount++) << std::endl;
std::cout << "Audio buffer underflow.." << (src->underflowCount++) << std::endl << std::flush;
}
if (src->boundThreads.empty()) {