Patch for VolumeRamping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I separated the patch into two, this is the second one.

Best Regards, Zheng, Huan(ZBT)

OTC/SSD/SSG

Intel Asia-Pacific Research & Developement Ltd

Tel: 021-6116 6435

Inet: 8821 6435

Cub: 3W035


-----Original Message-----
From: pulseaudio-discuss-bounces@xxxxxxxxxxxxxxxx [mailto:pulseaudio-discuss-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Zheng, Huan
Sent: 2009?6?8? 15:11
To: General PulseAudio Discussion
Subject: Patch for VolumeRamping

Hi, Lennart
I want to submit a patch for volume ramping. But the patch is too big and the mail list forbided my mail. My previous mail is as below.
Question for you is how can I give you the patch.

Best Regards, Zheng, Huan(ZBT)

OTC/SSD/SSG

Intel Asia-Pacific Research & Developement Ltd

Tel: 021-6116 6435

Inet: 8821 6435

Cub: 3W035


-----Original Message-----
From: Zheng, Huan 
Sent: 2009?6?8? 15:04
To: General PulseAudio Discussion
Cc: Zheng, Huan
Subject: Patch for VolumeRamping

Hi, Lennart
The attachment is the patch for volume ramping. Please review.

Impact to PA:
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.
Two API is exported for this feature:
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);
void pa_sink_input_set_mute_with_ramping(pa_sink_input *i, pa_bool_t mute, pa_bool_t save, pa_usec_t t);

What's included in this patch:
1, Fixed various bugs in envelope.c
2, Added logic in sink-input.c for volume ramping

Calculation formula is in the comments for the code, so I don't explain in this mail, please check the code. Thanks!


Best Regards, Zheng, Huan(ZBT)

OTC/SSD/SSG

Intel Asia-Pacific Research & Developement Ltd

Tel: 021-6116 6435

Inet: 8821 6435

Cub: 3W035

-----Original Message-----
From: pulseaudio-discuss-bounces@xxxxxxxxxxxxxxxx [mailto:pulseaudio-discuss-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Lennart Poettering
Sent: 2009?4?17? 22:43
To: pulseaudio-discuss at mail.0pointer.de
Subject: Re: About volume ramping

On Fri, 17.04.09 11:12, Zheng, Huan (huan.zheng at intel.com) wrote:

> Hi,
> I have a quick question on volume ramping.
> When will the code of volume ramping be enabled inside PA?

I began work on the enveloping stuff a while back but never actually
made use of it anywhere in PA. Can't work on everything at the same
time, sorry.

It's going to be enabled when it is going to be enabled. Sorry, but
there's nothing more definite I could say.

Always happy to take patches! If you want something to happen the best
way is always to do it yourself!

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss at mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss at mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-Volume-Ramping-feature-for-PA-commit-2.patch
Type: application/octet-stream
Size: 15710 bytes
Desc: 0002-Add-Volume-Ramping-feature-for-PA-commit-2.patch
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20090608/b298211f/attachment.obj>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux