diff options
-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 */ |