mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-05 06:25:21 +00:00
More work on audio prompts.
This commit is contained in:
parent
b9ebdee601
commit
196908bedc
10 changed files with 272 additions and 13 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue