acp: use global max channels if defined

This commit is contained in:
Wim Taymans 2025-10-24 17:16:03 +02:00
parent c8d4de5e77
commit 88c65932d8

View file

@ -27,7 +27,11 @@
extern "C" { extern "C" {
#endif #endif
#define PA_CHANNELS_MAX 128 #ifdef SPA_AUDIO_MAX_CHANNELS
#define PA_CHANNELS_MAX ((int)SPA_AUDIO_MAX_CHANNELS)
#else
#define PA_CHANNELS_MAX 64
#endif
#define PA_CHANNEL_MAP_SNPRINT_MAX (PA_CHANNELS_MAX * 32) #define PA_CHANNEL_MAP_SNPRINT_MAX (PA_CHANNELS_MAX * 32)