mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 16:25:45 +08:00
Allow the USRP audio format to be used natively by the FM networking.
This commit is contained in:
10
Conf.cpp
10
Conf.cpp
@@ -283,6 +283,7 @@ m_pocsagLocalPort(0U),
|
||||
m_pocsagNetworkModeHang(3U),
|
||||
m_pocsagNetworkDebug(false),
|
||||
m_fmNetworkEnabled(false),
|
||||
m_fmNetworkFormat("MMDVM"),
|
||||
m_fmGatewayAddress(),
|
||||
m_fmGatewayPort(0U),
|
||||
m_fmLocalAddress(),
|
||||
@@ -440,7 +441,7 @@ bool CConf::read()
|
||||
value++;
|
||||
} else {
|
||||
// if value is not quoted, remove after # (to make comment)
|
||||
::strtok(value, "#");
|
||||
(void)::strtok(value, "#");
|
||||
}
|
||||
|
||||
if (section == SECTION_GENERAL) {
|
||||
@@ -998,6 +999,8 @@ bool CConf::read()
|
||||
} else if (section == SECTION_FM_NETWORK) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_fmNetworkEnabled = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Format") == 0)
|
||||
m_fmNetworkFormat = value;
|
||||
else if (::strcmp(key, "LocalAddress") == 0)
|
||||
m_fmLocalAddress = value;
|
||||
else if (::strcmp(key, "LocalPort") == 0)
|
||||
@@ -2197,6 +2200,11 @@ bool CConf::getFMNetworkEnabled() const
|
||||
return m_fmNetworkEnabled;
|
||||
}
|
||||
|
||||
std::string CConf::getFMNetworkFormat() const
|
||||
{
|
||||
return m_fmNetworkFormat;
|
||||
}
|
||||
|
||||
std::string CConf::getFMGatewayAddress() const
|
||||
{
|
||||
return m_fmGatewayAddress;
|
||||
|
||||
Reference in New Issue
Block a user