mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
a2dp: automatic delay estimation
This commit is contained in:
parent
7bdcfb6383
commit
af38edea82
3 changed files with 15 additions and 1 deletions
|
|
@ -814,6 +814,17 @@ static int transport_update_props(struct spa_bt_transport *transport,
|
|||
}
|
||||
else if (strcmp(key, "Volume") == 0) {
|
||||
}
|
||||
else if (strcmp(key, "Delay") == 0) {
|
||||
uint16_t value;
|
||||
|
||||
if (type != DBUS_TYPE_UINT16)
|
||||
goto next;
|
||||
dbus_message_iter_get_basic(&it[1], &value);
|
||||
|
||||
spa_log_debug(monitor->log, "transport %p: %s=%02x", transport, key, value);
|
||||
|
||||
transport->delay = value;
|
||||
}
|
||||
next:
|
||||
dbus_message_iter_next(props_iter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue