From 59835d955bf38b7b49cb30c538f02899b15aa1b7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 3 May 2008 01:36:05 +0000 Subject: explain why a rewind was requested git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2357 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/modules/module-alsa-sink.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/module-alsa-sink.c b/src/modules/module-alsa-sink.c index efb0fd8a..897b955d 100644 --- a/src/modules/module-alsa-sink.c +++ b/src/modules/module-alsa-sink.c @@ -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 */ -- cgit