mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audio: remove layout from audio
Make special format types for planar and interleaved instead of having a field. Add enum for audio channel positions Add some default audio channel layouts Place the channel layout in the audio format when possible alsa: place audio channel positions in format Add sse optimized channel mixing for some common cases Remove name from port info, it's not mandatory and in the properties Add direction to port info
This commit is contained in:
		
							parent
							
								
									fb3379e587
								
							
						
					
					
						commit
						5196f7f053
					
				
					 38 changed files with 981 additions and 369 deletions
				
			
		| 
						 | 
				
			
			@ -144,7 +144,8 @@ static const struct pw_port_implementation port_implementation = {
 | 
			
		|||
 | 
			
		||||
static const char *chmap_names[] =
 | 
			
		||||
{
 | 
			
		||||
	"FL",
 | 
			
		||||
	"MONO",		/**< mono */
 | 
			
		||||
	"FL",		/**< front left */
 | 
			
		||||
        "FR",           /**< front right */
 | 
			
		||||
        "RL",           /**< rear left */
 | 
			
		||||
        "RR",           /**< rear right */
 | 
			
		||||
| 
						 | 
				
			
			@ -242,6 +243,8 @@ struct pw_node *pw_audio_dsp_new(struct pw_core *core,
 | 
			
		|||
		pw_properties_set(pr, "node.session", str);
 | 
			
		||||
 | 
			
		||||
	pw_properties_setf(pr, "node.format.rate", "%d", sample_rate);
 | 
			
		||||
	pw_properties_setf(pr, "node.format.channels", "%d", channels);
 | 
			
		||||
	pw_properties_setf(pr, "node.format.channelmask", "%"PRIu64, channelmask);
 | 
			
		||||
 | 
			
		||||
	node = pw_spa_node_load(core, NULL, NULL,
 | 
			
		||||
			"audioconvert/libspa-audioconvert",
 | 
			
		||||
| 
						 | 
				
			
			@ -293,6 +296,7 @@ struct pw_node *pw_audio_dsp_new(struct pw_core *core,
 | 
			
		|||
				alias,
 | 
			
		||||
				direction == PW_DIRECTION_INPUT ? "in" : "out",
 | 
			
		||||
				channel_name);
 | 
			
		||||
		pw_properties_setf(props, "port.channel", "%s", channel_name);
 | 
			
		||||
 | 
			
		||||
		port = pw_port_new(direction,
 | 
			
		||||
				   i,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue