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.
This commit is contained in:
Wim Taymans 2026-01-16 10:37:28 +01:00
parent fc171c8f35
commit afdb3beff8

View file

@ -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,