From: Ambrose Li Date: Tue, 14 May 2024 08:25:10 +0000 (-0400) Subject: use constant RATE for clarity X-Git-Tag: 4.3.4-dev~5^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47f893ba2a1dd62770fa457e1b0151826d72dffa;p=thirdparty%2Fshairport-sync.git use constant RATE for clarity --- diff --git a/audio_pa.c b/audio_pa.c index 6982c8fb..4f963c7f 100644 --- a/audio_pa.c +++ b/audio_pa.c @@ -41,7 +41,7 @@ #define RATE 44100 // Four seconds buffer -- should be plenty -#define buffer_allocation 44100 * 4 * 2 * 2 +#define buffer_allocation RATE * 4 * 2 * 2 static pthread_mutex_t buffer_mutex = PTHREAD_MUTEX_INITIALIZER;