Small fixes in init voice context, found during "merge testing"

This commit is contained in:
Klaus Basan
2014-06-13 13:47:36 +02:00
parent ce55bf49c7
commit c8bf23bf86
4 changed files with 15 additions and 9 deletions

View File

@@ -46,8 +46,8 @@ namespace BlackCore
connect(this->m_voice, &CVoiceVatlib::connectionStatusChanged, this, &CContextAudio::connectionStatusChanged);
if (this->getIContextApplication()) this->connect(this->m_voice, &IVoice::statusMessage, this->getIContextApplication(), &IContextApplication::sendStatusMessage);
// 5. load sounds (init)
CSoundGenerator::playNotificationSound(0, CNotificationSounds::NotificationsLoadSounds);
// 5. load sounds (init), not possible in own thread
QTimer::singleShot(10 * 1000, this, SLOT(initNotificationSounds()));
}
/*
@@ -297,6 +297,15 @@ namespace BlackCore
BlackSound::CSoundGenerator::playNotificationSound(90, notificationSound);
}
/*
* Notification
*/
void CContextAudio::initNotificationSounds()
{
// not possible in own thread
CSoundGenerator::playNotificationSound(0, CNotificationSounds::NotificationsLoadSounds);
}
/*
* Mic test.
*/