refs #258, notification sounds for voice room joined/left

* settings for notification sounds
* wav files
* changes in GUI
This commit is contained in:
Klaus Basan
2014-06-05 02:19:00 +02:00
parent 02bb054f5a
commit 1b804ca8d7
9 changed files with 292 additions and 6 deletions

View File

@@ -29,12 +29,10 @@ void MainWindow::reloadSettings()
// update hot keys
this->ui->tvp_SettingsMiscHotkeys->update(this->getIContextSettings()->getHotkeys());
// fake setting for sound notifications
this->ui->cb_SettingsAudioPlayNotificationSounds->setChecked(true);
this->ui->cb_SettingsAudioNotificationTextMessage->setChecked(true);
this->ui->cb_SettingsAudioNotificationVoiceRoom->setChecked(true);
}
/*

View File

@@ -237,6 +237,5 @@ void MainWindow::playNotifcationSound(CNotificationSounds::Notification notifica
{
if (!this->m_contextAudioAvailable) return;
if (!this->ui->cb_SettingsAudioPlayNotificationSounds->isChecked()) return;
if (notification == CNotificationSounds::NotificationTextMessage && !this->ui->cb_SettingsAudioNotificationTextMessage->isChecked()) return;
this->getIContextAudio()->playNotification(static_cast<uint>(notification));
this->getIContextAudio()->playNotification(static_cast<uint>(notification), true);
}