[pulseaudio-discuss] Volume ramping

Jason Taylor killerkiwi2005 at gmail.com
Wed Apr 28 19:23:20 PDT 2010

On 22 April 2010 23:18, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> 'Twas brillig, and Jason Taylor at 22/04/10 11:34 did gyre and gimble:
>> Is there a reason you can't ramp volume from daemon introspection
>> http://0pointer.de/lennart/projects/pulseaudio/doxygen/introspect_8h.html
>> pa_context_set_sink_input_volume_with_ramping ?
> IIRC volume ramping was implemented recently with some changes from IIRC
> Intel.
> I believe it's only used internally (e.g. from a module context) and I'm
> not sure if it's ever been intended to export it or not.
> I can't think off hand if there would be a problem exporting it, but
> there may be conditions that I've not thought off.

Looking at the code sink_input.c

void pa_sink_input_set_volume(pa_sink_input *i, const pa_cvolume
*volume, pa_bool_t save, pa_bool_t absolute) {
    /* test ramping -> return pa_sink_input_set_volume_with_ramping(i,
volume, save, absolute, 2000 * PA_USEC_PER_MSEC); */
    return pa_sink_input_set_volume_with_ramping(i, volume, save, absolute, 0);

So ramp code is actually being used already theres just not a way of
setting the number of seconds at the moment

Chances of code being accepted to add the option?


"Weekends don't count unless you spend them doing something completely
pointless. " - Calven

More information about the pulseaudio-discuss mailing list