mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2025-09-16 13:38:01 -04:00
Open the gateway voice data correctly.
This commit is contained in:
parent
60352ec830
commit
2303e3e1e5
@ -192,8 +192,14 @@ void CNXDNGateway::run()
|
|||||||
stopWatch.start();
|
stopWatch.start();
|
||||||
|
|
||||||
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(), 1U);
|
||||||
|
bool ok = voice->open();
|
||||||
|
if (!ok) {
|
||||||
|
delete voice;
|
||||||
|
voice = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LogMessage("Starting NXDNGateway-%s", VERSION);
|
LogMessage("Starting NXDNGateway-%s", VERSION);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user