mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
move flat volume logic into the core. while doing so add n_volume_steps field to sinks/sources
This commit is contained in:
parent
4bfa5d7d13
commit
d5f46e824e
32 changed files with 562 additions and 361 deletions
|
|
@ -64,6 +64,7 @@ static const pa_daemon_conf default_conf = {
|
|||
.realtime_priority = 5, /* Half of JACK's default rtprio */
|
||||
.disallow_module_loading = FALSE,
|
||||
.disallow_exit = FALSE,
|
||||
.flat_volumes = TRUE,
|
||||
.exit_idle_time = 20,
|
||||
.scache_idle_time = 20,
|
||||
.auto_log_target = 1,
|
||||
|
|
@ -418,6 +419,7 @@ int pa_daemon_conf_load(pa_daemon_conf *c, const char *filename) {
|
|||
{ "system-instance", pa_config_parse_bool, NULL },
|
||||
{ "no-cpu-limit", pa_config_parse_bool, NULL },
|
||||
{ "disable-shm", pa_config_parse_bool, NULL },
|
||||
{ "flat-volumes", pa_config_parse_bool, NULL },
|
||||
{ "exit-idle-time", pa_config_parse_int, NULL },
|
||||
{ "scache-idle-time", pa_config_parse_int, NULL },
|
||||
{ "realtime-priority", parse_rtprio, NULL },
|
||||
|
|
@ -490,6 +492,7 @@ int pa_daemon_conf_load(pa_daemon_conf *c, const char *filename) {
|
|||
table[i++].data = &c->system_instance;
|
||||
table[i++].data = &c->no_cpu_limit;
|
||||
table[i++].data = &c->disable_shm;
|
||||
table[i++].data = &c->flat_volumes;
|
||||
table[i++].data = &c->exit_idle_time;
|
||||
table[i++].data = &c->scache_idle_time;
|
||||
table[i++].data = c;
|
||||
|
|
@ -650,6 +653,7 @@ char *pa_daemon_conf_dump(pa_daemon_conf *c) {
|
|||
pa_strbuf_printf(s, "system-instance = %s\n", pa_yes_no(c->system_instance));
|
||||
pa_strbuf_printf(s, "no-cpu-limit = %s\n", pa_yes_no(c->no_cpu_limit));
|
||||
pa_strbuf_printf(s, "disable-shm = %s\n", pa_yes_no(c->disable_shm));
|
||||
pa_strbuf_printf(s, "flat-volumes = %s\n", pa_yes_no(c->flat_volumes));
|
||||
pa_strbuf_printf(s, "exit-idle-time = %i\n", c->exit_idle_time);
|
||||
pa_strbuf_printf(s, "scache-idle-time = %i\n", c->scache_idle_time);
|
||||
pa_strbuf_printf(s, "dl-search-path = %s\n", pa_strempty(c->dl_search_path));
|
||||
|
|
|
|||
|
|
@ -70,7 +70,8 @@ typedef struct pa_daemon_conf {
|
|||
load_default_script_file,
|
||||
disallow_exit,
|
||||
log_meta,
|
||||
log_time;
|
||||
log_time,
|
||||
flat_volumes;
|
||||
int exit_idle_time,
|
||||
scache_idle_time,
|
||||
auto_log_target,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,8 @@
|
|||
; disable-remixing = no
|
||||
; disable-lfe-remixing = yes
|
||||
|
||||
; flat-volumes = yes
|
||||
|
||||
; no-cpu-limit = no
|
||||
|
||||
; rlimit-fsize = -1
|
||||
|
|
|
|||
|
|
@ -917,6 +917,7 @@ int main(int argc, char *argv[]) {
|
|||
c->disable_lfe_remixing = !!conf->disable_lfe_remixing;
|
||||
c->running_as_daemon = !!conf->daemonize;
|
||||
c->disallow_exit = conf->disallow_exit;
|
||||
c->flat_volumes = conf->flat_volumes;
|
||||
|
||||
pa_assert_se(pa_signal_init(pa_mainloop_get_api(mainloop)) == 0);
|
||||
pa_signal_new(SIGINT, signal_callback, c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue