mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-22 08:56:59 -05:00
module-roc: try to switch rates
Try to switch the graph to 44100Hz.
This commit is contained in:
parent
4885baabb1
commit
1e244b4ebd
2 changed files with 4 additions and 0 deletions
|
|
@ -331,6 +331,8 @@ static int roc_source_setup(struct module_roc_source_data *data)
|
|||
info.position[1] = SPA_AUDIO_CHANNEL_FR;
|
||||
data->stride = info.channels * sizeof(float);
|
||||
|
||||
pw_properties_setf(data->playback_props, PW_KEY_NODE_RATE, "1/%d", info.rate);
|
||||
|
||||
if (roc_parse_resampler_profile(&receiver_config.resampler_profile,
|
||||
data->resampler_profile)) {
|
||||
pw_log_error("Invalid resampler profile");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue