meson: fix compilation when spa-plugins is disabled

Fixes #3811
This commit is contained in:
Wim Taymans 2024-01-26 15:11:54 +01:00
parent b4c7973d49
commit 1b6370ace1
6 changed files with 23 additions and 5 deletions

View file

@ -249,6 +249,7 @@ static inline void aec_run(struct impl *impl, const float *rec[], const float *p
{
spa_audio_aec_run(impl->aec, rec, play, out, n_samples);
#ifdef HAVE_SPA_PLUGINS
if (SPA_UNLIKELY(impl->wav_path[0])) {
if (impl->wav_file == NULL) {
struct wav_file_info info;
@ -287,6 +288,7 @@ static inline void aec_run(struct impl *impl, const float *rec[], const float *p
wav_file_close(impl->wav_file);
impl->wav_file = NULL;
}
#endif
}
static void process(struct impl *impl)