mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: fix get_cycle_times
This commit is contained in:
		
							parent
							
								
									6cde4e76d3
								
							
						
					
					
						commit
						6ce9b5acf7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3146,7 +3146,7 @@ int jack_get_cycle_times(const jack_client_t *client,
 | 
			
		|||
 | 
			
		||||
	*current_frames = c->jack_position.frame;
 | 
			
		||||
	*current_usecs = c->jack_position.usecs;
 | 
			
		||||
	*period_usecs = c->rate_diff * c->buffer_size / c->sample_rate;
 | 
			
		||||
	*period_usecs = c->buffer_size / (c->sample_rate * c->rate_diff);
 | 
			
		||||
	*next_usecs = c->jack_position.usecs + (*period_usecs * 1000000.0f);
 | 
			
		||||
	pw_log_trace("client %p: %d %ld %ld %f", c, *current_frames,
 | 
			
		||||
			*current_usecs, *next_usecs, *period_usecs);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue