mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa: suggest ringbuffer of max-latency size
With a ringbuffer of max-latency size we never receive more data than the max-latency, which is exactly what we want.
This commit is contained in:
		
							parent
							
								
									8c77332f25
								
							
						
					
					
						commit
						e303485757
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -388,7 +388,7 @@ impl_node_port_enum_params(struct spa_node *node,
 | 
				
			||||||
			":", t->param_alloc_meta_enable.type,		  "I", t->meta.Ringbuffer,
 | 
								":", t->param_alloc_meta_enable.type,		  "I", t->meta.Ringbuffer,
 | 
				
			||||||
			":", t->param_alloc_meta_enable.size,		  "i", sizeof(struct spa_meta_ringbuffer),
 | 
								":", t->param_alloc_meta_enable.size,		  "i", sizeof(struct spa_meta_ringbuffer),
 | 
				
			||||||
			":", t->param_alloc_meta_enable.ringbufferSize,	  "iru",
 | 
								":", t->param_alloc_meta_enable.ringbufferSize,	  "iru",
 | 
				
			||||||
									  this->props.min_latency * this->frame_size,
 | 
														  this->props.max_latency * this->frame_size,
 | 
				
			||||||
									2, this->props.min_latency * this->frame_size,
 | 
														2, this->props.min_latency * this->frame_size,
 | 
				
			||||||
									   this->period_frames * this->frame_size,
 | 
														   this->period_frames * this->frame_size,
 | 
				
			||||||
			":", t->param_alloc_meta_enable.ringbufferStride, "i", 0,
 | 
								":", t->param_alloc_meta_enable.ringbufferStride, "i", 0,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue