[pulseaudio-discuss] [PATCH 2/4] loopback: Don't fix the source output format/rate/channels.
Tanu Kaskinen
tanu.kaskinen at digia.com
Tue Aug 14 07:08:35 PDT 2012
Once the sink input has been routed in pa_sink_input_new(),
the sample spec and channel map have already become fixed.
The sink input and source output must use the same stream
format, because the data is copied as-is.
---
src/modules/module-loopback.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c
index f71cd81..555e88c 100644
--- a/src/modules/module-loopback.c
+++ b/src/modules/module-loopback.c
@@ -836,15 +836,6 @@ int pa__init(pa_module *m) {
if (!remix)
source_output_data.flags |= PA_SOURCE_OUTPUT_NO_REMIX;
- if (!format_set)
- source_output_data.flags |= PA_SOURCE_OUTPUT_FIX_FORMAT;
-
- if (!rate_set)
- source_output_data.flags |= PA_SOURCE_OUTPUT_FIX_RATE;
-
- if (!channels_set)
- source_output_data.flags |= PA_SOURCE_OUTPUT_FIX_CHANNELS;
-
source_dont_move = FALSE;
if (pa_modargs_get_value_boolean(ma, "source_dont_move", &source_dont_move) < 0) {
pa_log("source_dont_move= expects a boolean argument.");
--
1.7.9.5
More information about the pulseaudio-discuss
mailing list