mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert2: set blocks a stride for DSP ports
They might not get connected and negotiated but we still need to use empty buffers in that case.
This commit is contained in:
		
							parent
							
								
									2d6bf00acc
								
							
						
					
					
						commit
						c0f34e9d9d
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -322,6 +322,8 @@ static int init_port(struct impl *this, enum spa_direction direction, uint32_t p
 | 
				
			||||||
		port->format.media_type = SPA_MEDIA_TYPE_audio;
 | 
							port->format.media_type = SPA_MEDIA_TYPE_audio;
 | 
				
			||||||
		port->format.media_subtype = SPA_MEDIA_SUBTYPE_dsp;
 | 
							port->format.media_subtype = SPA_MEDIA_SUBTYPE_dsp;
 | 
				
			||||||
		port->format.info.dsp.format = SPA_AUDIO_FORMAT_DSP_F32;
 | 
							port->format.info.dsp.format = SPA_AUDIO_FORMAT_DSP_F32;
 | 
				
			||||||
 | 
							port->blocks = 1;
 | 
				
			||||||
 | 
							port->stride = 4;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	spa_list_init(&port->queue);
 | 
						spa_list_init(&port->queue);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue