From 8c0a94c9d8e0bcd106d7f2a2379758b3278facae Mon Sep 17 00:00:00 2001 From: Julian Picht Date: Mon, 19 Dec 2022 12:47:47 +0100 Subject: [PATCH] module/roc-*: fix position of comment --- src/modules/module-roc-sink.c | 3 ++- src/modules/module-roc-source.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;