diff --git a/player.c b/player.c index 94fe3802..21eb432f 100644 --- a/player.c +++ b/player.c @@ -2370,15 +2370,18 @@ void *player_thread_func(void *arg) { int do_loudness = config.loudness; + +#ifdef CONFIG_CONVOLUTION int do_convolution = 0; if ((config.convolution) && (config.convolver_valid)) do_convolution = 1; - + // we will apply the convolution gain if convolution is enabled, even if there is no valid convolution happening int convolution_is_enabled = 0; if (config.convolution) convolution_is_enabled = 1; +#endif if (do_loudness #ifdef CONFIG_CONVOLUTION diff --git a/shairport.c b/shairport.c index c9b5ba1c..d2a1a494 100644 --- a/shairport.c +++ b/shairport.c @@ -1339,9 +1339,11 @@ Actually, there is no stop_mpris_service() function. if (config.service_name) free(config.service_name); - + +#ifdef CONFIG_CONVOLUTION if (config.convolution_ir_file) free(config.convolution_ir_file); +#endif if (config.regtype) free(config.regtype);