mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
jack: use sample rate from position
Use the sample rate from the position io area as soon as we get it.
This commit is contained in:
parent
b99074879f
commit
9b41e4dfd9
1 changed files with 2 additions and 0 deletions
|
|
@ -1169,6 +1169,8 @@ static int client_node_set_io(void *object,
|
||||||
c->position = ptr;
|
c->position = ptr;
|
||||||
c->driver_id = ptr ? c->position->clock.id : SPA_ID_INVALID;
|
c->driver_id = ptr ? c->position->clock.id : SPA_ID_INVALID;
|
||||||
update_driver_activation(c);
|
update_driver_activation(c);
|
||||||
|
if (ptr)
|
||||||
|
c->sample_rate = c->position->clock.rate.denom;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue