From: Mike Brady Date: Fri, 4 Jan 2019 13:48:56 +0000 (+0000) Subject: Raise the soxr minimum buffer size to something sensible and multiply it by the outpu... X-Git-Tag: 3.3RC0~66^2~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4610d0870d8b5fc58f4acedec6d482916ea1e4be;p=thirdparty%2Fshairport-sync.git Raise the soxr minimum buffer size to something sensible and multiply it by the output ratio --- diff --git a/player.c b/player.c index b14b9daf..5885568b 100644 --- a/player.c +++ b/player.c @@ -95,7 +95,7 @@ #define MAX_PACKET 2048 // DAC buffer occupancy stuff -#define DAC_BUFFER_QUEUE_MINIMUM_LENGTH 600 +#define DAC_BUFFER_QUEUE_MINIMUM_LENGTH 2500 // static abuf_t audio_buffer[BUFFER_FRAMES]; #define BUFIDX(seqno) ((seq_t)(seqno) % BUFFER_FRAMES) @@ -2214,7 +2214,7 @@ void *player_thread_func(void *arg) { } } - if ((current_delay < DAC_BUFFER_QUEUE_MINIMUM_LENGTH) || + if ((current_delay < (DAC_BUFFER_QUEUE_MINIMUM_LENGTH * conn->output_sample_ratio)) || (config.packet_stuffing == ST_basic)) { play_samples = stuff_buffer_basic_32((int32_t *)conn->tbuf, inbuflength, config.output_format,