mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: use NODE_RATE to suggest a graph rate
When the rate is in the allowed rates and the graph is idle, it will switch to the new rate.
This commit is contained in:
		
							parent
							
								
									cad64bc992
								
							
						
					
					
						commit
						bf66a3b236
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1440,6 +1440,7 @@ static int do_create_playback_stream(struct client *client, uint32_t command, ui
 | 
			
		|||
					impl, format_id2name(ss.format), ss.rate,
 | 
			
		||||
					ss.channels);
 | 
			
		||||
		}
 | 
			
		||||
		pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%u", ss.rate);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (m->offset != m->length)
 | 
			
		||||
| 
						 | 
				
			
			@ -1679,6 +1680,7 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint
 | 
			
		|||
					impl, format_id2name(ss.format), ss.rate,
 | 
			
		||||
					ss.channels);
 | 
			
		||||
		}
 | 
			
		||||
		pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%u", ss.rate);
 | 
			
		||||
	}
 | 
			
		||||
	if (m->offset != m->length)
 | 
			
		||||
		goto error_protocol;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue