Open the gateway voice data correctly.
This commit is contained in:
parent
60352ec830
commit
2303e3e1e5
|
@ -192,8 +192,14 @@ void CNXDNGateway::run()
|
|||
stopWatch.start();
|
||||
|
||||
CVoice* voice = NULL;
|
||||
if (m_conf.getVoiceEnabled())
|
||||
if (m_conf.getVoiceEnabled()) {
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue