mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
refs #258, notification sounds for voice room joined/left
* settings for notification sounds * wav files * changes in GUI
This commit is contained in:
@@ -474,10 +474,14 @@ namespace BlackSound
|
||||
success = playlist->addMedia(QUrl::fromLocalFile(QCoreApplication::applicationDirPath().append("/sounds/login.wav"))) && success;
|
||||
success = playlist->addMedia(QUrl::fromLocalFile(QCoreApplication::applicationDirPath().append("/sounds/logoff.wav"))) && success;
|
||||
success = playlist->addMedia(QUrl::fromLocalFile(QCoreApplication::applicationDirPath().append("/sounds/privatemessage.wav"))) && success;
|
||||
success = playlist->addMedia(QUrl::fromLocalFile(QCoreApplication::applicationDirPath().append("/sounds/voiceroomjoined.wav"))) && success;
|
||||
success = playlist->addMedia(QUrl::fromLocalFile(QCoreApplication::applicationDirPath().append("/sounds/voiceroomleft.wav"))) && success;
|
||||
|
||||
Q_ASSERT(success);
|
||||
playlist->setPlaybackMode(QMediaPlaylist::CurrentItemOnce);
|
||||
mediaPlayer->setPlaylist(playlist);
|
||||
}
|
||||
if (notification == CNotificationSounds::NotificationsLoadSounds) return;
|
||||
int index = static_cast<int>(notification);
|
||||
playlist->setCurrentIndex(index);
|
||||
mediaPlayer->setVolume(volume); // 0-100
|
||||
|
||||
BIN
src/blacksound/sounds/voiceroomjoined.wav
Normal file
BIN
src/blacksound/sounds/voiceroomjoined.wav
Normal file
Binary file not shown.
BIN
src/blacksound/sounds/voiceroomleft.wav
Normal file
BIN
src/blacksound/sounds/voiceroomleft.wav
Normal file
Binary file not shown.
Reference in New Issue
Block a user