mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-18 22:48:05 -04:00
OSX crude re-sync tweak
This commit is contained in:
parent
ad800056d5
commit
9fc864ea57
@ -25,8 +25,8 @@ static int audioCallback(void *outputBuffer, void *inputBuffer, unsigned int nBu
|
|||||||
int wait_for_it = 0;
|
int wait_for_it = 0;
|
||||||
|
|
||||||
if (audio_queue->empty()) {
|
if (audio_queue->empty()) {
|
||||||
while (wait_for_it++ < 50) { // Can we wait it out?
|
while (wait_for_it++ < 5) { // Can we wait it out?
|
||||||
std::this_thread::sleep_for(std::chrono::microseconds(10000));
|
std::this_thread::sleep_for(std::chrono::microseconds(100000));
|
||||||
// std::this_thread::yield();
|
// std::this_thread::yield();
|
||||||
if (!audio_queue->empty()) {
|
if (!audio_queue->empty()) {
|
||||||
std::cout << "Buffer recovery.." << std::endl;
|
std::cout << "Buffer recovery.." << std::endl;
|
||||||
@ -56,8 +56,8 @@ static int audioCallback(void *outputBuffer, void *inputBuffer, unsigned int nBu
|
|||||||
if (audio_queue->empty()) {
|
if (audio_queue->empty()) {
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
while (wait_for_it++ < 50) { // Can we wait it out?
|
while (wait_for_it++ < 5) { // Can we wait it out?
|
||||||
std::this_thread::sleep_for(std::chrono::microseconds(10000));
|
std::this_thread::sleep_for(std::chrono::microseconds(100000));
|
||||||
if (!audio_queue->empty()) {
|
if (!audio_queue->empty()) {
|
||||||
std::cout << "Buffer recovery.." << std::endl;
|
std::cout << "Buffer recovery.." << std::endl;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user