mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
spa: Implement latency reporting
Implement latency reporting in alsa Implement latency reporting on audioconf by passing on the latency from the follower to outside of the adapter.
This commit is contained in:
parent
1a8f274a80
commit
1cd6d7b01d
8 changed files with 212 additions and 4 deletions
|
|
@ -143,7 +143,8 @@ struct state {
|
|||
#define IDX_IO 2
|
||||
#define IDX_Format 3
|
||||
#define IDX_Buffers 4
|
||||
#define N_PORT_PARAMS 5
|
||||
#define IDX_Latency 5
|
||||
#define N_PORT_PARAMS 6
|
||||
struct spa_param_info port_params[N_PORT_PARAMS];
|
||||
struct spa_io_buffers *io;
|
||||
struct spa_io_clock *clock;
|
||||
|
|
@ -190,6 +191,9 @@ struct state {
|
|||
|
||||
struct spa_dll dll;
|
||||
double max_error;
|
||||
|
||||
float latency_quantum;
|
||||
uint32_t latency;
|
||||
};
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue