From 47f893ba2a1dd62770fa457e1b0151826d72dffa Mon Sep 17 00:00:00 2001 From: Ambrose Li Date: Tue, 14 May 2024 04:25:10 -0400 Subject: [PATCH] use constant RATE for clarity --- audio_pa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;