mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	protocol: use the right sample rate for sources
Use the correct sample rate for reporting about the timing.
This commit is contained in:
		
							parent
							
								
									409a9d01cd
								
							
						
					
					
						commit
						9ad567167e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2620,7 +2620,7 @@ static void command_get_record_latency(pa_pdispatch *pd, uint32_t command, uint3
 | 
			
		|||
    pa_tagstruct_put_usec(reply, s->current_monitor_latency);
 | 
			
		||||
    pa_tagstruct_put_usec(reply,
 | 
			
		||||
                          s->current_source_latency +
 | 
			
		||||
                          pa_bytes_to_usec(s->on_the_fly_snapshot, &s->source_output->sample_spec));
 | 
			
		||||
                          pa_bytes_to_usec(s->on_the_fly_snapshot, &s->source_output->source->sample_spec));
 | 
			
		||||
    pa_tagstruct_put_boolean(reply,
 | 
			
		||||
                             pa_source_get_state(s->source_output->source) == PA_SOURCE_RUNNING &&
 | 
			
		||||
                             pa_source_output_get_state(s->source_output) == PA_SOURCE_OUTPUT_RUNNING);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue