mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	explain why a rewind was requested
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2357 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									82caf5a886
								
							
						
					
					
						commit
						59835d955b
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -848,8 +848,10 @@ static void sink_update_requested_latency_cb(pa_sink *s) {
 | 
			
		|||
    current fill level. Thus, let's do a full rewind once, to clear
 | 
			
		||||
    things up. */
 | 
			
		||||
 | 
			
		||||
    if (u->hwbuf_unused_frames > before)
 | 
			
		||||
    if (u->hwbuf_unused_frames > before) {
 | 
			
		||||
        pa_log_debug("Requesting rewind due to latency change.");
 | 
			
		||||
        pa_sink_request_rewind(s, 0);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int process_rewind(struct userdata *u) {
 | 
			
		||||
| 
						 | 
				
			
			@ -1311,6 +1313,8 @@ int pa__init(pa_module*m) {
 | 
			
		|||
 | 
			
		||||
                } else if (snd_mixer_selem_get_playback_dB_range(u->mixer_elem, &u->hw_dB_min, &u->hw_dB_max) >= 0) {
 | 
			
		||||
 | 
			
		||||
                    /* u->hw_dB_max = 0; u->hw_dB_min = -3000; Use this to make valgrind shut up */
 | 
			
		||||
 | 
			
		||||
                    pa_log_info("Volume ranges from %0.2f dB to %0.2f dB.", u->hw_dB_min/100.0, u->hw_dB_max/100.0);
 | 
			
		||||
 | 
			
		||||
                    /* Let's see if this thing actually is useful for muting */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue