From a5c09c91c414ba08d915331797e717334ac06456 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 28 Feb 2009 19:40:39 +0100 Subject: [PATCH] output: added option to disable audio outputs by default The option "enabled" is on by default. If you specify "enabled no" in an audio_output section, then this device is disabled by default. --- NEWS | 1 + src/output_init.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 68fbb33b3..153cbd837 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,7 @@ ver 0.15 - (200?/??/??) - wildmidi: another decoder plugin for MIDI files (using libwildmidi) - added configuration option to disable decoder plugins * audio outputs: + - added option to disable audio outputs by default - shout: enlarged buffer size to 32 kB - null: allow disabling synchronization - mvp: fall back to stereo diff --git a/src/output_init.c b/src/output_init.c index 004b73e84..962a805af 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -91,7 +91,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param) ao->name = name; ao->plugin = plugin; - ao->enabled = true; + ao->enabled = config_get_block_bool(param, "enabled", true); ao->open = false; ao->reopen_after = 0;