mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
audioconvert: use some defines for the max ports
This commit is contained in:
parent
606d48a3e8
commit
7d73f0b8d0
7 changed files with 16 additions and 10 deletions
|
|
@ -44,6 +44,8 @@
|
|||
|
||||
#define NAME "audioconvert"
|
||||
|
||||
#define MAX_PORTS SPA_AUDIO_MAX_CHANNELS
|
||||
|
||||
struct buffer {
|
||||
struct spa_list link;
|
||||
#define BUFFER_FLAG_OUT (1 << 0)
|
||||
|
|
@ -1239,8 +1241,8 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
this->info_all = SPA_NODE_CHANGE_MASK_FLAGS |
|
||||
SPA_NODE_CHANGE_MASK_PARAMS;
|
||||
this->info = SPA_NODE_INFO_INIT();
|
||||
this->info.max_input_ports = 128;
|
||||
this->info.max_output_ports = 128;
|
||||
this->info.max_input_ports = MAX_PORTS;
|
||||
this->info.max_output_ports = MAX_PORTS;
|
||||
this->info.flags = SPA_NODE_FLAG_RT |
|
||||
SPA_NODE_FLAG_IN_PORT_CONFIG |
|
||||
SPA_NODE_FLAG_OUT_PORT_CONFIG |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue