Shorten the delays to 100 ms

This commit is contained in:
Mike Brady
2018-12-04 08:56:29 +00:00
parent 67d2a4b5d9
commit 9ddef563ad
+4 -4
View File
@@ -507,7 +507,7 @@ static int init(int argc, char **argv) {
debug(1, "alsa: no hardware mixer selected.");
}
usleep(200000); // see if it makes a difference
usleep(100000); // see if it makes a difference
alsa_mix_handle = NULL;
return response;
}
@@ -884,7 +884,7 @@ int actual_open_alsa_device(void) {
break;
}
}
usleep(200000); // see if it makes a difference
usleep(100000); // see if it makes a difference
return 0;
}
@@ -911,7 +911,7 @@ static void start(int i_sample_rate, int i_sample_format) {
frame_index = 0;
measurement_data_is_valid = 0;
usleep(200000); // see if it makes a difference
usleep(100000); // see if it makes a difference
}
//assuming pthread cancellation is disabled
@@ -1165,7 +1165,7 @@ static void flush(void) {
measurement_data_is_valid = 0;
alsa_handle = NULL;
}
usleep(200000); // see if it makes a difference
usleep(100000); // see if it makes a difference
debug_mutex_unlock(&alsa_mutex, 3);
pthread_cleanup_pop(0); // release the mutex
pthread_setcancelstate(oldState, NULL);