pipewire: module-roc-{sink,source}: port to ROC v0.3.X

ROC 0.3 introduced breaking changes, so adjust the code.
Also set the minimum supported ROC version to 0.3.0.

Fixes #3667
This commit is contained in:
Barnabás Pőcze 2023-11-22 18:30:57 +01:00
parent 5d62bf5c06
commit 333fd8d2ae
6 changed files with 11 additions and 12 deletions

View file

@ -31,8 +31,6 @@ static inline int pw_roc_parse_resampler_profile(roc_resampler_profile *out, con
{
if (!str || !*str)
*out = ROC_RESAMPLER_PROFILE_DEFAULT;
else if (spa_streq(str, "disable"))
*out = ROC_RESAMPLER_PROFILE_DISABLE;
else if (spa_streq(str, "high"))
*out = ROC_RESAMPLER_PROFILE_HIGH;
else if (spa_streq(str, "medium"))