Revert "core: volume ramping fix"
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sun, 27 Feb 2011 17:31:54 +0000 (23:01 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 28 Feb 2011 11:41:31 +0000 (17:11 +0530)
This reverts commit aa9348441db34b787784711f19882d6c42fa315d.

(part of a patch series removing all ramping code)

src/pulsecore/sink-input.c

index 0c421da..028f0f6 100644 (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;
             }
         } 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);
             }