mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: recompute latency on buffer size change
The latencies might be expressed in quantum, which changes when the buffer size changes.
This commit is contained in:
		
							parent
							
								
									92a5570bbd
								
							
						
					
					
						commit
						52b9ca8f2e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -1209,6 +1209,8 @@ do_buffer_frames(struct spa_loop *loop,
 | 
				
			||||||
	uint32_t buffer_frames = *((uint32_t*)data);
 | 
						uint32_t buffer_frames = *((uint32_t*)data);
 | 
				
			||||||
	struct client *c = user_data;
 | 
						struct client *c = user_data;
 | 
				
			||||||
	do_callback_expr(c, c->buffer_frames = buffer_frames, bufsize_callback, buffer_frames, c->bufsize_arg);
 | 
						do_callback_expr(c, c->buffer_frames = buffer_frames, bufsize_callback, buffer_frames, c->bufsize_arg);
 | 
				
			||||||
 | 
						do_callback(c, latency_callback, JackCaptureLatency, c->latency_arg);
 | 
				
			||||||
 | 
						do_callback(c, latency_callback, JackPlaybackLatency, c->latency_arg);
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue