audioconvert: use some defines for the max ports

This commit is contained in:
Wim Taymans 2020-12-09 20:32:44 +01:00
parent 606d48a3e8
commit 7d73f0b8d0
7 changed files with 16 additions and 10 deletions

View file

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