mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: cache a2dp volumes activation info
So we don't get a sudden boost on soft volumes when switching profile/codec.
This commit is contained in:
parent
51c3290d11
commit
0dde4f8774
2 changed files with 20 additions and 7 deletions
|
|
@ -424,6 +424,10 @@ struct spa_bt_device {
|
|||
int has_battery;
|
||||
|
||||
uint32_t hw_volume_profiles;
|
||||
/* Even tought A2DP volume is exposed on transport interface, the
|
||||
* volume activation info would not be variate between transports
|
||||
* under same device. So it's safe to cache activation info here. */
|
||||
bool a2dp_volume_active[2];
|
||||
|
||||
struct spa_hook_list listener_list;
|
||||
bool added;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue