mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
alsa: report latency in the samplerate domain of the graph
This commit is contained in:
parent
21392d898e
commit
af020bc425
1 changed files with 3 additions and 1 deletions
|
|
@ -1739,7 +1739,9 @@ int spa_alsa_set_format(struct state *state, struct spa_audio_info *fmt, uint32_
|
||||||
|
|
||||||
state->latency[state->port_direction].min_rate =
|
state->latency[state->port_direction].min_rate =
|
||||||
state->latency[state->port_direction].max_rate =
|
state->latency[state->port_direction].max_rate =
|
||||||
SPA_MAX(state->min_delay, SPA_MIN(state->max_delay, state->headroom));
|
SPA_SCALE32_UP(
|
||||||
|
SPA_MAX(state->min_delay, SPA_MIN(state->max_delay, state->headroom)),
|
||||||
|
state->clock->rate.denom, state->rate);
|
||||||
|
|
||||||
spa_log_info(state->log, "%s (%s): format:%s access:%s-%s rate:%d channels:%d "
|
spa_log_info(state->log, "%s (%s): format:%s access:%s-%s rate:%d channels:%d "
|
||||||
"buffer frames %lu, period frames %lu, periods %u, frame_size %zd "
|
"buffer frames %lu, period frames %lu, periods %u, frame_size %zd "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue