mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: improve debug
Log current and target sample_rate and buffer_size
This commit is contained in:
		
							parent
							
								
									2762b8d98f
								
							
						
					
					
						commit
						36617fc833
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1087,7 +1087,7 @@ static void on_notify_event(void *data, uint64_t count)
 | 
			
		|||
			do_recompute_capture = do_recompute_playback = true;
 | 
			
		||||
			break;
 | 
			
		||||
		case NOTIFY_TYPE_BUFFER_FRAMES:
 | 
			
		||||
			pw_log_debug("%p: buffer frames %d", c, notify->arg1);
 | 
			
		||||
			pw_log_debug("%p: buffer frames %d -> %d", c, c->buffer_frames, notify->arg1);
 | 
			
		||||
			if (c->buffer_frames != (uint32_t)notify->arg1) {
 | 
			
		||||
				do_callback_expr(c, c->buffer_frames = notify->arg1,
 | 
			
		||||
						bufsize_callback, c->active,
 | 
			
		||||
| 
						 | 
				
			
			@ -1096,7 +1096,7 @@ static void on_notify_event(void *data, uint64_t count)
 | 
			
		|||
			}
 | 
			
		||||
			break;
 | 
			
		||||
		case NOTIFY_TYPE_SAMPLE_RATE:
 | 
			
		||||
			pw_log_debug("%p: sample rate %d", c, notify->arg1);
 | 
			
		||||
			pw_log_debug("%p: sample rate %d -> %d", c, c->sample_rate, notify->arg1);
 | 
			
		||||
			if (c->sample_rate != (uint32_t)notify->arg1) {
 | 
			
		||||
				do_callback_expr(c, c->sample_rate = notify->arg1,
 | 
			
		||||
						srate_callback, c->active,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue