<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Zheng, Huan</b> <span dir="ltr"><<a href="mailto:huan.zheng@intel.com">huan.zheng@intel.com</a>></span><br>
Date: 2009/6/8<br>Subject: [pulseaudio-discuss] Patch for VolumeRamping<br>To: General PulseAudio Discussion <<a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a>><br><br><br>
Hi, Lennart<br>
The attachment is the patch for volume ramping. Please review.<br>
<br>
Impact to PA:<br>
This patch will enable PA with volume ramping feature. People use IPhone may have this kind of experience that when a telephone call comes in when user is listening to music, the music is gradually volume down to mute; and after the call, the music is gradually volume up to previous level. This patch will give PA the ability to do the similar thing, and I have tested with this patch, the effect is as good as IPhone.<br>
Two API is exported for this feature:<br>
void pa_sink_input_set_volume_with_ramping(pa_sink_input *i, const pa_cvolume *volume, pa_bool_t save, pa_bool_t absolute, pa_usec_t t);<br>
void pa_sink_input_set_mute_with_ramping(pa_sink_input *i, pa_bool_t mute, pa_bool_t save, pa_usec_t t);<br>
<br>
What's included in this patch:<br>
1, Fixed various bugs in envelope.c<br>
2, Added logic in sink-input.c for volume ramping<br>
<br>
Calculation formula is in the comments for the code, so I don't explain in this mail, please check the code. Thanks!<br>
<br>
<br>
Best Regards, Zheng, Huan(ZBT)<br>
<br>
OTC/SSD/SSG<br>
<br>
Intel Asia-Pacific Research & Developement Ltd<br>
<br>
Tel: 021-6116 6435<br>
<br>
Inet: 8821 6435<br>
<br>
Cub: 3W035<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:pulseaudio-discuss-bounces@mail.0pointer.de">pulseaudio-discuss-bounces@mail.0pointer.de</a> [mailto:<a href="mailto:pulseaudio-discuss-bounces@mail.0pointer.de">pulseaudio-discuss-bounces@mail.0pointer.de</a>] On Behalf Of Lennart Poettering<br>
Sent: 2009年4月17日 22:43<br>
To: <a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
Subject: Re: [pulseaudio-discuss] About volume ramping<br>
<br>
On Fri, 17.04.09 11:12, Zheng, Huan (<a href="mailto:huan.zheng@intel.com">huan.zheng@intel.com</a>) wrote:<br>
<br>
> Hi,<br>
> I have a quick question on volume ramping.<br>
> When will the code of volume ramping be enabled inside PA?<br>
<br>
I began work on the enveloping stuff a while back but never actually<br>
made use of it anywhere in PA. Can't work on everything at the same<br>
time, sorry.<br>
<br>
It's going to be enabled when it is going to be enabled. Sorry, but<br>
there's nothing more definite I could say.<br>
<br>
Always happy to take patches! If you want something to happen the best<br>
way is always to do it yourself!<br>
<br>
Lennart<br>
<font color="#888888"><br>
--<br>
Lennart Poettering Red Hat, Inc.<br>
lennart [at] poettering [dot] net ICQ# 11060553<br>
<a href="http://0pointer.net/lennart/" target="_blank">http://0pointer.net/lennart/</a> GnuPG 0x1A015CC4<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</font><br>_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
<br></div><br><br clear="all"><br>-- <br>"Weekends don't count unless you spend them doing something completely pointless. " - Calven<br>