From afdb3beff8640175802262f23da40db8f34538df Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 16 Jan 2026 10:37:28 +0100 Subject: [PATCH] spa: make it possible to change SPA_AUDIO_MAX_CHANNELS Only define the symbol if not already defined. Avoids a warning becauswe wireplumber now recompiles with a custom MAX_CHANNELS. --- spa/include/spa/param/audio/raw.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spa/include/spa/param/audio/raw.h b/spa/include/spa/param/audio/raw.h index 47425ab5f..457b09919 100644 --- a/spa/include/spa/param/audio/raw.h +++ b/spa/include/spa/param/audio/raw.h @@ -18,7 +18,11 @@ extern "C" { * \{ */ +/* This is the max number of channels, changing this will change the + * size of some helper structures. This value should be at least 64 */ +#ifndef SPA_AUDIO_MAX_CHANNELS #define SPA_AUDIO_MAX_CHANNELS 64u +#endif enum spa_audio_format { SPA_AUDIO_FORMAT_UNKNOWN,