mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	channelmix: don't use default map for mono
Keep the original channel map so that we can match the channels properly when remixing.
This commit is contained in:
		
							parent
							
								
									22a210e798
								
							
						
					
					
						commit
						3ab3157bf1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -329,9 +329,9 @@ static int setup_convert(struct impl *this,
 | 
				
			||||||
		dst_mask |= 1ULL << (p < 64 ? p : 0);
 | 
							dst_mask |= 1ULL << (p < 64 ? p : 0);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (src_mask & 1 || src_chan == 1)
 | 
						if (src_mask & 1)
 | 
				
			||||||
		src_mask = default_mask(src_chan);
 | 
							src_mask = default_mask(src_chan);
 | 
				
			||||||
	if (dst_mask & 1 || dst_chan == 1)
 | 
						if (dst_mask & 1)
 | 
				
			||||||
		dst_mask = default_mask(dst_chan);
 | 
							dst_mask = default_mask(dst_chan);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d %08"PRIx64":%08"PRIx64, this,
 | 
						spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d %08"PRIx64":%08"PRIx64, this,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue