bluez5: handle BAP presentation delay and transport latency

For BAP server audio sink, set buffering target so that we try to match
the target presentation delay.  Also adjust requested node latency to be
smaller than the delay.

Also fix BAP transport presentation delay value parsing, and parse also
the other BAP transport properties. Of these, transport latency value
needs to be taken into account in the total sink latency.
This commit is contained in:
Pauli Virtanen 2023-02-19 17:25:14 +02:00
parent 192044f1d9
commit b9d7ecb5b2
4 changed files with 180 additions and 21 deletions

View file

@ -603,7 +603,8 @@ struct spa_bt_transport {
int fd;
uint16_t read_mtu;
uint16_t write_mtu;
uint16_t delay;
unsigned int delay_us;
unsigned int latency_us;
struct spa_bt_sco_io *sco_io;