mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pipewire: module-roc-{sink,source}: port to ROC v0.3.X
ROC 0.3 introduced breaking changes, so adjust the code. Also set the minimum supported ROC version to 0.3.0. Fixes #3667
This commit is contained in:
		
							parent
							
								
									5d62bf5c06
								
							
						
					
					
						commit
						333fd8d2ae
					
				
					 6 changed files with 11 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -268,9 +268,10 @@ static int roc_source_setup(struct module_roc_source_data *data)
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	spa_zero(receiver_config);
 | 
			
		||||
	receiver_config.frame_sample_rate = data->rate;
 | 
			
		||||
	receiver_config.frame_channels = ROC_CHANNEL_SET_STEREO;
 | 
			
		||||
	receiver_config.frame_encoding = ROC_FRAME_ENCODING_PCM_FLOAT;
 | 
			
		||||
 | 
			
		||||
	receiver_config.frame_encoding.rate = data->rate;
 | 
			
		||||
	receiver_config.frame_encoding.channels = ROC_CHANNEL_LAYOUT_STEREO;
 | 
			
		||||
	receiver_config.frame_encoding.format = ROC_FORMAT_PCM_FLOAT32;
 | 
			
		||||
	receiver_config.resampler_profile = data->resampler_profile;
 | 
			
		||||
 | 
			
		||||
	info.rate = data->rate;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue