mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	echo-cancel: Canceller may use different spec for playback and capture
The original intention was to configure low enough parameters to keep CPU consumption down. Prior to this change, we assumed that the EC backend would override the sink parameters based on the source parameters to achieve this goal, and with this change we remove that assumption by forcing the default parameters for the sink to be low enough.
This commit is contained in:
		
							parent
							
								
									fab8a16b0f
								
							
						
					
					
						commit
						d777838fbb
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -1690,7 +1690,9 @@ int pa__init(pa_module*m) {
 | 
				
			||||||
    pa_channel_map_init_auto(&source_map, source_ss.channels, PA_CHANNEL_MAP_DEFAULT);
 | 
					    pa_channel_map_init_auto(&source_map, source_ss.channels, PA_CHANNEL_MAP_DEFAULT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    sink_ss = sink_master->sample_spec;
 | 
					    sink_ss = sink_master->sample_spec;
 | 
				
			||||||
    sink_map = sink_master->channel_map;
 | 
					    sink_ss.rate = DEFAULT_RATE;
 | 
				
			||||||
 | 
					    sink_ss.channels = DEFAULT_CHANNELS;
 | 
				
			||||||
 | 
					    pa_channel_map_init_auto(&sink_map, sink_ss.channels, PA_CHANNEL_MAP_DEFAULT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    u = pa_xnew0(struct userdata, 1);
 | 
					    u = pa_xnew0(struct userdata, 1);
 | 
				
			||||||
    if (!u) {
 | 
					    if (!u) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue