From: Mike Brady Date: Tue, 4 Dec 2018 08:56:29 +0000 (+0000) Subject: Shorten the delays to 100 ms X-Git-Tag: 3.3RC0~119^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ddef563ad8c7d5c603be5a31bc98ea101dccbec;p=thirdparty%2Fshairport-sync.git Shorten the delays to 100 ms --- diff --git a/audio_alsa.c b/audio_alsa.c index c233a67b..73f324a5 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -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);