More work on audio prompts.

This commit is contained in:
Jonathan Naylor 2017-05-01 20:05:41 +01:00
parent b9ebdee601
commit 196908bedc
10 changed files with 272 additions and 13 deletions

View file

@ -52,6 +52,7 @@ m_logFilePath(),
m_logFileRoot(),
m_voiceEnabled(true),
m_voiceLanguage("en_GB"),
m_voiceDirectory(),
m_dmrNetworkAddress(),
m_dmrNetworkPort(0U),
m_dmrNetworkLocal(0U),
@ -143,6 +144,8 @@ bool CConf::read()
m_voiceEnabled = ::atoi(value) == 1;
else if (::strcmp(key, "Language") == 0)
m_voiceLanguage = value;
else if (::strcmp(key, "Directory") == 0)
m_voiceDirectory = value;
} else if (section == SECTION_XLX_NETWORK) {
if (::strcmp(key, "Address") == 0)
m_xlxNetworkAddress = value;
@ -250,6 +253,11 @@ std::string CConf::getVoiceLanguage() const
return m_voiceLanguage;
}
std::string CConf::getVoiceDirectory() const
{
return m_voiceDirectory;
}
std::string CConf::getXLXNetworkAddress() const
{
return m_xlxNetworkAddress;