mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Small fixes in init voice context, found during "merge testing"
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user