mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
audioconvert: keep the graph latency around
This commit is contained in:
parent
ca032152b1
commit
37bf571db3
1 changed files with 6 additions and 0 deletions
|
|
@ -235,6 +235,7 @@ struct filter_graph {
|
||||||
uint32_t inputs_position[SPA_AUDIO_MAX_CHANNELS];
|
uint32_t inputs_position[SPA_AUDIO_MAX_CHANNELS];
|
||||||
uint32_t n_outputs;
|
uint32_t n_outputs;
|
||||||
uint32_t outputs_position[SPA_AUDIO_MAX_CHANNELS];
|
uint32_t outputs_position[SPA_AUDIO_MAX_CHANNELS];
|
||||||
|
struct spa_process_latency_info latency;
|
||||||
bool removing;
|
bool removing;
|
||||||
bool setup;
|
bool setup;
|
||||||
};
|
};
|
||||||
|
|
@ -1029,6 +1030,11 @@ static void graph_info(void *object, const struct spa_filter_graph_info *info)
|
||||||
else if (spa_streq(k, "outputs.audio.position"))
|
else if (spa_streq(k, "outputs.audio.position"))
|
||||||
spa_audio_parse_position(s, strlen(s),
|
spa_audio_parse_position(s, strlen(s),
|
||||||
g->outputs_position, &g->n_outputs);
|
g->outputs_position, &g->n_outputs);
|
||||||
|
else if (spa_streq(k, "latency")) {
|
||||||
|
double latency;
|
||||||
|
if (spa_atod(s, &latency))
|
||||||
|
g->latency.rate = (uint32_t)latency;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue