mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Add audio section to the config file
This commit is contained in:
parent
ffcf100c00
commit
f93090a713
@ -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"
|
||||
}
|
||||
|
@ -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()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user