mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2025-07-31 12:12:24 -04:00
Change the Id of the voice prompt.
This commit is contained in:
parent
d7d7314e86
commit
bfe3811459
@ -54,6 +54,8 @@ const char* DEFAULT_INI_FILE = "/etc/NXDNGateway.ini";
|
|||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
const unsigned short NXDN_VOICE_ID = 9999U;
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
const char* iniFile = DEFAULT_INI_FILE;
|
const char* iniFile = DEFAULT_INI_FILE;
|
||||||
@ -196,7 +198,7 @@ void CNXDNGateway::run()
|
|||||||
|
|
||||||
CVoice* voice = NULL;
|
CVoice* voice = NULL;
|
||||||
if (m_conf.getVoiceEnabled()) {
|
if (m_conf.getVoiceEnabled()) {
|
||||||
voice = new CVoice(m_conf.getVoiceDirectory(), m_conf.getVoiceLanguage(), 1U);
|
voice = new CVoice(m_conf.getVoiceDirectory(), m_conf.getVoiceLanguage(), NXDN_VOICE_ID);
|
||||||
bool ok = voice->open();
|
bool ok = voice->open();
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
delete voice;
|
delete voice;
|
||||||
@ -272,9 +274,8 @@ void CNXDNGateway::run()
|
|||||||
|
|
||||||
// If we're unlinking or changing reflectors, unlink from the current one
|
// If we're unlinking or changing reflectors, unlink from the current one
|
||||||
if (dstId == 9999U || reflector != NULL) {
|
if (dstId == 9999U || reflector != NULL) {
|
||||||
std::string callsign = lookup->find(srcId);
|
|
||||||
|
|
||||||
if (currentId != 9999U) {
|
if (currentId != 9999U) {
|
||||||
|
std::string callsign = lookup->find(srcId);
|
||||||
LogMessage("Unlinked from reflector %u by %s", currentId, callsign.c_str());
|
LogMessage("Unlinked from reflector %u by %s", currentId, callsign.c_str());
|
||||||
|
|
||||||
if (voice != NULL && dstId == 9999U)
|
if (voice != NULL && dstId == 9999U)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user