Revert "core: volume ramping fix"

This reverts commit aa9348441d.

(part of a patch series removing all ramping code)
This commit is contained in:
Arun Raghavan 2011-02-27 23:01:54 +05:30
parent bed4b73cfe
commit 8745eccb45

View file

@ -2003,7 +2003,7 @@ static void sink_input_rewind_ramp_info(pa_sink_input *i, size_t nbytes) {
i->thread_info.ramp_info.is_ramping = TRUE; i->thread_info.ramp_info.is_ramping = TRUE;
} }
} else if (i->thread_info.ramp_info.envelope_dying < envelope_length) { } else if (i->thread_info.ramp_info.envelope_dying < envelope_length) {
if ((i->thread_info.ramp_info.envelope_dying - (ssize_t) nbytes) <= 0) { if ((i->thread_info.ramp_info.envelope_dying - nbytes) <= 0) {
pa_log_debug("Envelope Restart"); pa_log_debug("Envelope Restart");
pa_envelope_restart(i->thread_info.ramp_info.envelope); pa_envelope_restart(i->thread_info.ramp_info.envelope);
} }