refs #240, moved notification sounds in project blackmisc

Notification sounds are used in BlackGui components. They require the whole Qt multimedia library. However, GUI only triggers playing the sound. As a workaround the notification sounds enumeration has been moved in an own class, and moved to the subproject BlackMisc. Hence it is possible to compile BlackGui without dependency to BlackSound.
This commit is contained in:
Klaus Basan
2014-05-19 18:18:56 +02:00
parent 798780dd4c
commit 4c952ab782
6 changed files with 54 additions and 41 deletions

View File

@@ -7,6 +7,7 @@
#include "context_network.h"
#include "blacksound/soundgenerator.h"
#include "blackmisc/notificationsounds.h"
#include <QTimer>
@@ -263,7 +264,7 @@ namespace BlackCore
{
Q_ASSERT(this->m_voice);
if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, QString::number(notification));
BlackSound::CSoundGenerator::playNotificationSound(90, static_cast<BlackSound::CSoundGenerator::Notification>(notification));
BlackSound::CSoundGenerator::playNotificationSound(90, static_cast<BlackSound::CNotificationSounds::Notification>(notification));
}
/*