mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
daemon-conf: add remixing-use-all-sink-channels option
This option controls the PA_RESAMPLER_NO_FILL_SINK flag added in a previous commit. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=62588 BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=94563
This commit is contained in:
parent
6ec4ca218e
commit
6e6f497219
9 changed files with 21 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ static const pa_daemon_conf default_conf = {
|
|||
.log_time = false,
|
||||
.resample_method = PA_RESAMPLER_AUTO,
|
||||
.disable_remixing = false,
|
||||
.remixing_use_all_sink_channels = true,
|
||||
.disable_lfe_remixing = true,
|
||||
.lfe_crossover_freq = 0,
|
||||
.config_file = NULL,
|
||||
|
|
@ -554,6 +555,8 @@ int pa_daemon_conf_load(pa_daemon_conf *c, const char *filename) {
|
|||
{ "nice-level", parse_nice_level, c, NULL },
|
||||
{ "disable-remixing", pa_config_parse_bool, &c->disable_remixing, NULL },
|
||||
{ "enable-remixing", pa_config_parse_not_bool, &c->disable_remixing, NULL },
|
||||
{ "remixing-use-all-sink-channels",
|
||||
pa_config_parse_bool, &c->remixing_use_all_sink_channels, NULL },
|
||||
{ "disable-lfe-remixing", pa_config_parse_bool, &c->disable_lfe_remixing, NULL },
|
||||
{ "enable-lfe-remixing", pa_config_parse_not_bool, &c->disable_lfe_remixing, NULL },
|
||||
{ "lfe-crossover-freq", pa_config_parse_unsigned, &c->lfe_crossover_freq, NULL },
|
||||
|
|
@ -748,6 +751,7 @@ char *pa_daemon_conf_dump(pa_daemon_conf *c) {
|
|||
pa_strbuf_printf(s, "log-level = %s\n", log_level_to_string[c->log_level]);
|
||||
pa_strbuf_printf(s, "resample-method = %s\n", pa_resample_method_to_string(c->resample_method));
|
||||
pa_strbuf_printf(s, "enable-remixing = %s\n", pa_yes_no(!c->disable_remixing));
|
||||
pa_strbuf_printf(s, "remixing-use-all-sink-channels = %s\n", pa_yes_no(c->remixing_use_all_sink_channels));
|
||||
pa_strbuf_printf(s, "enable-lfe-remixing = %s\n", pa_yes_no(!c->disable_lfe_remixing));
|
||||
pa_strbuf_printf(s, "lfe-crossover-freq = %u\n", c->lfe_crossover_freq);
|
||||
pa_strbuf_printf(s, "default-sample-format = %s\n", pa_sample_format_to_string(c->default_sample_spec.format));
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ typedef struct pa_daemon_conf {
|
|||
disable_shm,
|
||||
disable_memfd,
|
||||
disable_remixing,
|
||||
remixing_use_all_sink_channels,
|
||||
disable_lfe_remixing,
|
||||
load_default_script_file,
|
||||
disallow_exit,
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ ifelse(@HAVE_DBUS@, 1, [dnl
|
|||
|
||||
; resample-method = speex-float-1
|
||||
; enable-remixing = yes
|
||||
; remixing-use-all-sink-channels = yes
|
||||
; enable-lfe-remixing = no
|
||||
; lfe-crossover-freq = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -1037,6 +1037,7 @@ int main(int argc, char *argv[]) {
|
|||
c->realtime_priority = conf->realtime_priority;
|
||||
c->realtime_scheduling = conf->realtime_scheduling;
|
||||
c->disable_remixing = conf->disable_remixing;
|
||||
c->remixing_use_all_sink_channels = conf->remixing_use_all_sink_channels;
|
||||
c->disable_lfe_remixing = conf->disable_lfe_remixing;
|
||||
c->deferred_volume = conf->deferred_volume;
|
||||
c->running_as_daemon = conf->daemonize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue