diff --git a/src/modules/module-roc-sink.c b/src/modules/module-roc-sink.c index 2e034755a..324caa935 100644 --- a/src/modules/module-roc-sink.c +++ b/src/modules/module-roc-sink.c @@ -315,8 +315,9 @@ static int roc_sink_setup(struct module_roc_sink_data *data) sender_config.frame_encoding = ROC_FRAME_ENCODING_PCM_FLOAT; sender_config.fec_code = data->fec_code; - /* Fixed to be the same as ROC sender config above */ info.rate = data->rate; + + /* Fixed to be the same as ROC sender config above */ info.channels = 2; info.format = SPA_AUDIO_FORMAT_F32; info.position[0] = SPA_AUDIO_CHANNEL_FL; diff --git a/src/modules/module-roc-source.c b/src/modules/module-roc-source.c index 299da427f..2085c292a 100644 --- a/src/modules/module-roc-source.c +++ b/src/modules/module-roc-source.c @@ -336,8 +336,9 @@ static int roc_source_setup(struct module_roc_source_data *data) receiver_config.frame_encoding = ROC_FRAME_ENCODING_PCM_FLOAT; receiver_config.resampler_profile = data->resampler_profile; - /* Fixed to be the same as ROC receiver config above */ info.rate = data->rate; + + /* Fixed to be the same as ROC receiver config above */ info.channels = 2; info.format = SPA_AUDIO_FORMAT_F32; info.position[0] = SPA_AUDIO_CHANNEL_FL;