diff options
| author | Lennart Poettering <lennart@poettering.net> | 2008-05-03 01:36:05 +0000 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2008-05-03 01:36:05 +0000 | 
| commit | 59835d955bf38b7b49cb30c538f02899b15aa1b7 (patch) | |
| tree | 996f39e14766d3efb0ebf7ff6728c3d137e00072 /src | |
| parent | 82caf5a88643e968a3328c1e1fa8fe63f0572084 (diff) | |
explain why a rewind was requested
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2357 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/module-alsa-sink.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| 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 */ | 
