mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -05:00
spa: add Latency param and object
Add a new latency param that contains a latency object. The latency object contains the min and max delay from a port to the terminal sink/source. It is also possible to express this delay as a fraction of the quantum to avoid having to recalculate the latency every time the quantum changes.
This commit is contained in:
parent
46ef88e520
commit
1a8f274a80
4 changed files with 24 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ static const struct spa_type_info spa_types[] = {
|
|||
{ SPA_TYPE_OBJECT_ParamPortConfig, SPA_TYPE_Object, SPA_TYPE_INFO_PARAM_PortConfig, spa_type_param_port_config },
|
||||
{ SPA_TYPE_OBJECT_ParamRoute, SPA_TYPE_Object, SPA_TYPE_INFO_PARAM_Route, spa_type_param_route },
|
||||
{ SPA_TYPE_OBJECT_Profiler, SPA_TYPE_Object, SPA_TYPE_INFO_Profiler, spa_type_profiler },
|
||||
{ SPA_TYPE_OBJECT_ParamLatency, SPA_TYPE_Object, SPA_TYPE_INFO_PARAM_Latency, spa_type_param_latency },
|
||||
|
||||
{ 0, 0, NULL, NULL }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ enum {
|
|||
SPA_TYPE_OBJECT_ParamPortConfig,
|
||||
SPA_TYPE_OBJECT_ParamRoute,
|
||||
SPA_TYPE_OBJECT_Profiler,
|
||||
SPA_TYPE_OBJECT_ParamLatency,
|
||||
_SPA_TYPE_OBJECT_LAST, /**< not part of ABI */
|
||||
|
||||
/* vendor extensions */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue