From 8745eccb453a1f92bc5f59ff01b2f59fdec65d0b Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Sun, 27 Feb 2011 23:01:54 +0530 Subject: Revert "core: volume ramping fix" This reverts commit aa9348441db34b787784711f19882d6c42fa315d. (part of a patch series removing all ramping code) --- src/pulsecore/sink-input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pulsecore/sink-input.c') diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index 0c421da3..028f0f69 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -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; } } 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_envelope_restart(i->thread_info.ramp_info.envelope); } -- cgit