mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -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
|
|
@ -70,6 +70,8 @@
|
|||
#define DEFAULT_VOLUME 1.0
|
||||
#define DEFAULT_QUALITY 4
|
||||
|
||||
#define MAX_CHANNELS SPA_AUDIO_MAX_CHANNELS
|
||||
|
||||
enum mode {
|
||||
mode_none,
|
||||
mode_playback,
|
||||
|
|
@ -91,7 +93,7 @@ typedef int (*fill_fn)(struct data *d, void *dest, unsigned int n_frames, bool *
|
|||
|
||||
struct channelmap {
|
||||
uint32_t n_channels;
|
||||
uint32_t channels[SPA_AUDIO_MAX_CHANNELS];
|
||||
uint32_t channels[MAX_CHANNELS];
|
||||
};
|
||||
|
||||
struct data {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue