port: implement latency_changed event

Emit the latency changed event when the latency was updated.
This commit is contained in:
Wim Taymans 2021-05-25 17:46:50 +02:00
parent 0222e408e0
commit cd58c51582
3 changed files with 10 additions and 4 deletions

View file

@ -731,6 +731,7 @@ struct pw_impl_port_implementation {
#define pw_impl_port_emit_control_added(p,c) pw_impl_port_emit(p, control_added, 0, c)
#define pw_impl_port_emit_control_removed(p,c) pw_impl_port_emit(p, control_removed, 0, c)
#define pw_impl_port_emit_param_changed(p,i) pw_impl_port_emit(p, param_changed, 1, i)
#define pw_impl_port_emit_latency_changed(p) pw_impl_port_emit(p, latency_changed, 2)
#define PW_IMPL_PORT_IS_CONTROL(port) SPA_FLAG_MASK(port->flags, \
PW_IMPL_PORT_FLAG_BUFFERS|PW_IMPL_PORT_FLAG_CONTROL,\