mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
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:
parent
5d62bf5c06
commit
333fd8d2ae
6 changed files with 11 additions and 12 deletions
|
|
@ -259,11 +259,11 @@ static int roc_sink_setup(struct module_roc_sink_data *data)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
memset(&sender_config, 0, sizeof(sender_config));
|
||||
spa_zero(sender_config);
|
||||
|
||||
sender_config.frame_sample_rate = data->rate;
|
||||
sender_config.frame_channels = ROC_CHANNEL_SET_STEREO;
|
||||
sender_config.frame_encoding = ROC_FRAME_ENCODING_PCM_FLOAT;
|
||||
sender_config.frame_encoding.rate = data->rate;
|
||||
sender_config.frame_encoding.channels = ROC_CHANNEL_LAYOUT_STEREO;
|
||||
sender_config.frame_encoding.format = ROC_FORMAT_PCM_FLOAT32;
|
||||
sender_config.fec_encoding = data->fec_code;
|
||||
|
||||
info.rate = data->rate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue