mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Don't use SPA_AUDIO_MAX_CHANNELS directly
Make a MAX_CHANNELS define and use that one in code. This makes it easier to change the constant later.
This commit is contained in:
parent
eb096bfb62
commit
13b8c23767
30 changed files with 136 additions and 108 deletions
|
|
@ -35,12 +35,13 @@
|
|||
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.null-audio-sink");
|
||||
|
||||
#define DEFAULT_CLOCK_NAME "clock.system.monotonic"
|
||||
#define MAX_CHANNELS SPA_AUDIO_MAX_CHANNELS
|
||||
|
||||
struct props {
|
||||
uint32_t format;
|
||||
uint32_t channels;
|
||||
uint32_t rate;
|
||||
uint32_t pos[SPA_AUDIO_MAX_CHANNELS];
|
||||
uint32_t pos[MAX_CHANNELS];
|
||||
char clock_name[64];
|
||||
unsigned int debug:1;
|
||||
unsigned int driver:1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue