Add audio section to the config file

This commit is contained in:
Julien BLACHE 2010-05-02 11:24:07 +02:00
parent ffcf100c00
commit f93090a713
2 changed files with 17 additions and 0 deletions

View File

@ -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"
}

View File

@ -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()
};