if (!(sink = pa_idxset_get_by_index(core->sinks, target->paidx)))
pa_log("no route to default '%s': sink is gone", target->amname);
else {
- if (pa_classify_multiplex_stream(data)) {
- data->mux = pa_multiplex_create(u->multiplex, core,
- sink->index, chmap, NULL,
- media_role, data->type);
- if (data->mux) {
- sink = pa_idxset_get_by_index(core->sinks,
- data->mux->sink_index);
- pa_assert(sink);
+ if (u->enable_multiplex == true) {
+ if (pa_classify_multiplex_stream(data)) {
+ data->mux = pa_multiplex_create(u->multiplex, core,
+ sink->index, chmap, NULL,
+ media_role, data->type);
+ if (data->mux) {
+ sink = pa_idxset_get_by_index(core->sinks,
+ data->mux->sink_index);
+ pa_assert(sink);
+ }
}
}
}
"config_file=<policy configuration file> "
"fade_out=<stream fade-out time in msec> "
"fade_in=<stream fade-in time in msec> "
+ "enable_multiplex=<boolean for disabling combine creation> "
#ifdef WITH_DOMCTL
"murphy_domain_controller=<address of Murphy's domain controller service> "
#endif
"config_file",
"fade_out",
"fade_in",
+ "enable_multiplex",
#ifdef WITH_DOMCTL
"murphy_domain_controller",
#endif
const char *nsnam;
const char *cfgpath;
char buf[4096];
+ bool enable_multiplex = true;
pa_assert(m);
cfgfile = pa_modargs_get_value(ma, "config_file", DEFAULT_CONFIG_FILE);
fadeout = pa_modargs_get_value(ma, "fade_out", NULL);
fadein = pa_modargs_get_value(ma, "fade_in", NULL);
+
+ if (pa_modargs_get_value_boolean(ma, "enable_multiplex", &enable_multiplex) < 0)
+ enable_multiplex = true;
+
#ifdef WITH_DOMCTL
ctladdr = pa_modargs_get_value(ma, "murphy_domain_controller", NULL);
#endif
u->state.sink = PA_IDXSET_INVALID;
u->state.source = PA_IDXSET_INVALID;
+ u->enable_multiplex = enable_multiplex;
+
if (u->nullsink == NULL || u->routerif == NULL ||
u->audiomgr == NULL || u->discover == NULL ||
u->murphyif == NULL)