From f93090a7130e42feb1a233631133959e007839de Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 2 May 2010 11:24:07 +0200 Subject: [PATCH] Add audio section to the config file --- forked-daapd.conf | 8 ++++++++ src/conffile.c | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/forked-daapd.conf b/forked-daapd.conf index ee7b73ca..0f72ddab 100644 --- a/forked-daapd.conf +++ b/forked-daapd.conf @@ -36,3 +36,11 @@ library { # Formats that should always be transcoded # force_transcode = { "ogg", "flac" } } + +# Local audio output +audio { + # AirTunes name - used in the speaker list in Remote + nickname = "Computer" + # Audio device name for local audio output +# card = "default" +} diff --git a/src/conffile.c b/src/conffile.c index 88bb2968..c2313577 100644 --- a/src/conffile.c +++ b/src/conffile.c @@ -64,11 +64,20 @@ static cfg_opt_t sec_library[] = CFG_END() }; +/* local audio section structure */ +static cfg_opt_t sec_audio[] = + { + CFG_STR("nickname", "Computer", CFGF_NONE), + CFG_STR("card", "default", CFGF_NONE), + CFG_END() + }; + /* Config file structure */ static cfg_opt_t toplvl_cfg[] = { CFG_SEC("general", sec_general, CFGF_NONE), CFG_SEC("library", sec_library, CFGF_NONE), + CFG_SEC("audio", sec_audio, CFGF_NONE), CFG_END() };