a2dp: automatic delay estimation

This commit is contained in:
Gabriel Ebner 2020-12-23 19:13:54 +01:00 committed by Wim Taymans
parent 7bdcfb6383
commit af38edea82
3 changed files with 15 additions and 1 deletions

View file

@ -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);
}