mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-23 08:56:47 -05:00
alsa: keep track of input and output latency
track and report both input and output latency.
This commit is contained in:
parent
ed9560fb03
commit
8cf5927e95
5 changed files with 49 additions and 13 deletions
|
|
@ -682,7 +682,8 @@ int spa_alsa_set_format(struct state *state, struct spa_audio_info *fmt, uint32_
|
|||
state->headroom = SPA_MIN(state->headroom, state->buffer_frames);
|
||||
state->start_delay = state->default_start_delay;
|
||||
|
||||
state->latency.min_rate = state->latency.max_rate = state->headroom;
|
||||
state->latency[state->port_direction].min_rate = state->headroom;
|
||||
state->latency[state->port_direction].max_rate = state->headroom;
|
||||
|
||||
state->period_frames = period_size;
|
||||
periods = state->buffer_frames / state->period_frames;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue