[pulseaudio-commits] r2357 - /branches/glitch-free/src/modules/module-alsa-sink.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri May 2 18:36:07 PDT 2008


Author: lennart
Date: Sat May  3 03:36:05 2008
New Revision: 2357

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2357&root=pulseaudio&view=rev
Log:
explain why a rewind was requested

Modified:
    branches/glitch-free/src/modules/module-alsa-sink.c

Modified: branches/glitch-free/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/modules/module-alsa-sink.c?rev=2357&root=pulseaudio&r1=2356&r2=2357&view=diff
==============================================================================
--- branches/glitch-free/src/modules/module-alsa-sink.c (original)
+++ branches/glitch-free/src/modules/module-alsa-sink.c Sat May  3 03:36:05 2008
@@ -848,8 +848,10 @@
     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 @@
 
                 } 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 */




More information about the pulseaudio-commits mailing list