mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: aec: webrtc: Fix multichannel processing
Missed this parameter while porting to webrtc-audio-processing 1.0.
This commit is contained in:
		
							parent
							
								
									7674b15fab
								
							
						
					
					
						commit
						3f35b80402
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -171,6 +171,8 @@ static int webrtc_init2(void *object, const struct spa_dict *args,
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
	webrtc::AudioProcessing::Config config;
 | 
						webrtc::AudioProcessing::Config config;
 | 
				
			||||||
	config.echo_canceller.enabled = true;
 | 
						config.echo_canceller.enabled = true;
 | 
				
			||||||
 | 
						config.pipeline.multi_channel_capture = rec_info->channels > 1;
 | 
				
			||||||
 | 
						config.pipeline.multi_channel_render = play_info->channels > 1;
 | 
				
			||||||
	// FIXME: Example code enables both gain controllers, but that seems sus
 | 
						// FIXME: Example code enables both gain controllers, but that seems sus
 | 
				
			||||||
	config.gain_controller1.enabled = gain_control;
 | 
						config.gain_controller1.enabled = gain_control;
 | 
				
			||||||
	config.gain_controller1.mode = webrtc::AudioProcessing::Config::GainController1::Mode::kAdaptiveDigital;
 | 
						config.gain_controller1.mode = webrtc::AudioProcessing::Config::GainController1::Mode::kAdaptiveDigital;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue