Open the gateway voice data correctly.

This commit is contained in:
Jonathan Naylor 2018-03-15 18:44:59 +00:00
parent 60352ec830
commit 2303e3e1e5
1 changed files with 7 additions and 1 deletions

View File

@ -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);