mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert: disable monitor port logic if both sides are in dsp mode
There is a use case where you may want to use audioconvert with both input & output sides configured in dsp mode, for altering the stream volume. When it is configured like that, the IS_MONITOR_PORT macro wrongly thinks that all output ports except the first one are monitor ports, originating in the merger instead of the splitter. This change fixes that and it also completely disables exposing monitor ports, even if they are enabled, when both sides are in dsp mode (fmt_input_port_info() also uses the same macro to check if the monitor ports are to be exposed)
This commit is contained in:
		
							parent
							
								
									2a3bf485e7
								
							
						
					
					
						commit
						0bff0e345f
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -114,7 +114,8 @@ struct impl {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define IS_MONITOR_PORT(this,dir,port_id) (dir == SPA_DIRECTION_OUTPUT && port_id > 0 &&	\
 | 
					#define IS_MONITOR_PORT(this,dir,port_id) (dir == SPA_DIRECTION_OUTPUT && port_id > 0 &&	\
 | 
				
			||||||
		this->mode[SPA_DIRECTION_INPUT] == SPA_PARAM_PORT_CONFIG_MODE_dsp)
 | 
							this->mode[SPA_DIRECTION_INPUT] == SPA_PARAM_PORT_CONFIG_MODE_dsp &&		\
 | 
				
			||||||
 | 
							this->mode[SPA_DIRECTION_OUTPUT] != SPA_PARAM_PORT_CONFIG_MODE_dsp)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void emit_node_info(struct impl *this, bool full)
 | 
					static void emit_node_info(struct impl *this, bool full)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue