mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	policy-node: always up or downmix to device format
Always remix the channels to match the ones on the device even if that means upmixing. This will make mono streams go to all inputs of the device instead of just one. Fixes #355
This commit is contained in:
		
							parent
							
								
									4ea95abd90
								
							
						
					
					
						commit
						9d598cde63
					
				
					 1 changed files with 4 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -158,12 +158,10 @@ static int configure_node(struct node *node, struct spa_audio_info *info, bool f
 | 
			
		|||
	format = node->format;
 | 
			
		||||
 | 
			
		||||
	if (info != NULL && info->info.raw.channels > 0) {
 | 
			
		||||
		if (node->monitor || info->info.raw.channels < format.info.raw.channels) {
 | 
			
		||||
			pw_log_info("node %d monitor:%d channelmix %d:%d",
 | 
			
		||||
					node->id, node->monitor, format.info.raw.channels,
 | 
			
		||||
					info->info.raw.channels);
 | 
			
		||||
			format = *info;
 | 
			
		||||
		}
 | 
			
		||||
		pw_log_info("node %d monitor:%d channelmix %d->%d",
 | 
			
		||||
			node->id, node->monitor, format.info.raw.channels,
 | 
			
		||||
			info->info.raw.channels);
 | 
			
		||||
		format = *info;
 | 
			
		||||
	}
 | 
			
		||||
	format.info.raw.rate = impl->sample_rate;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue