Thread (3 messages) 3 messages, 3 authors, 2012-02-27

Re: [RFC : PATCH] - AVRCP 1.4 AbsoluteVolume

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2012-02-27 11:00:54

Hi,

On Mon, Feb 27, 2012 at 12:01 PM, Vani-dineshbhai PATEL X
[off-list ref] wrote:
Hi All,

I would like to propose this patch for the implementation of Absolute Volume functionality.
When CT sends SetAbsoluteVolume request, a DBus call is made to the player to change the value of its property - volume.
This value is saved in the media_player instance so that it can be sent for Interim response for VolumeChanged Notification.
Your comments shall be appreciated.
Please split the patch, if possible first introduce the handling on
avrcp.c and make it check if cb->set_volume != NULL then in a separate
patch you can add the changes to media.c. When sending patches to
userspace BlueZ please use the subject prefix e.g. PATCH BlueZ, you
can also make it permanent by editing .git/config in your local tree.

IMO the volume handling should be in MediaTransport not in
MediaPlayer, otherwise it is quite possible that the player will
change the stream volume and not just indicate which is what is
recommended, in that case you would have to find what transport(s)
matches the device and emit PropertyChanged on them.

Our architecture is a bit different than what AVRCP suggests, because
the A2DP stream may not be directly controlled by the player, it is
controlled by the MediaTransport, so in case of PulseAudio multiple
processes may be streaming and naturally the volume gain applies to
everyone of them not just the MediaPlayer owner.

-- 
Luiz Augusto von Dentz
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help