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:
Lennart Poettering 2008-05-03 01:36:05 +00:00
parent 82caf5a886
commit 59835d955b

View file

@ -848,9 +848,11 @@ 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) {
snd_pcm_sframes_t unused;
@ -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 */