mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pw-cat: suggest samplerate as graph rate
This commit is contained in:
parent
c25e6cee50
commit
0bad741d45
1 changed files with 3 additions and 0 deletions
|
|
@ -1358,9 +1358,12 @@ static int setup_sndfile(struct data *data)
|
||||||
sf_fmt_to_str(info.format),
|
sf_fmt_to_str(info.format),
|
||||||
data->samplesize,
|
data->samplesize,
|
||||||
data->stride, nom, (double)nom/data->rate);
|
data->stride, nom, (double)nom/data->rate);
|
||||||
|
|
||||||
if (nom)
|
if (nom)
|
||||||
pw_properties_setf(data->props, PW_KEY_NODE_LATENCY, "%u/%u", nom, data->rate);
|
pw_properties_setf(data->props, PW_KEY_NODE_LATENCY, "%u/%u", nom, data->rate);
|
||||||
|
|
||||||
|
pw_properties_setf(data->props, PW_KEY_NODE_RATE, "1/%u", data->rate);
|
||||||
|
|
||||||
if (data->quality >= 0)
|
if (data->quality >= 0)
|
||||||
pw_properties_setf(data->props, "resample.quality", "%d", data->quality);
|
pw_properties_setf(data->props, "resample.quality", "%d", data->quality);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue