mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: smaller max latency for BAP client capture
4 packets should be enough jitter buffer. This matters only for BAP client, server is controlled by presentation delay.
This commit is contained in:
parent
7e04f8fe44
commit
f48a72a504
1 changed files with 1 additions and 1 deletions
|
|
@ -903,7 +903,7 @@ static int transport_start(struct impl *this)
|
||||||
|
|
||||||
spa_bt_decode_buffer_set_target_latency(&port->buffer, (int32_t) this->decode_buffer_target);
|
spa_bt_decode_buffer_set_target_latency(&port->buffer, (int32_t) this->decode_buffer_target);
|
||||||
|
|
||||||
if (this->codec->kind == MEDIA_CODEC_HFP) {
|
if (this->codec->kind == MEDIA_CODEC_HFP || this->codec->kind == MEDIA_CODEC_BAP) {
|
||||||
/* 40 ms max buffer (on top of duration) */
|
/* 40 ms max buffer (on top of duration) */
|
||||||
spa_bt_decode_buffer_set_max_extra_latency(&port->buffer,
|
spa_bt_decode_buffer_set_max_extra_latency(&port->buffer,
|
||||||
port->current_format.info.raw.rate * 40 / 1000);
|
port->current_format.info.raw.rate * 40 / 1000);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue