1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor: Use new getSound function

This commit is contained in:
Alice Weigt 2016-10-26 02:17:08 -07:00
parent ce9406c959
commit 3c310f4aa6
4 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
</qresource>
<qresource prefix="/">
<file>audio/notification.pcm</file>
<file>audio/ToxicIncomingCall.pcm</file>
<file>audio/ToxIncomingCall.pcm</file>
<file>img/add.svg</file>
<file>img/avatar_mask.svg</file>
<file>img/contact.svg</file>

View File

@ -323,7 +323,7 @@ void ChatForm::onAvInvite(uint32_t FriendId, bool video)
Widget::getInstance()->newFriendMessageAlert(FriendId, false);
Audio& audio = Audio::getInstance();
audio.startLoop();
audio.playMono16Sound(QStringLiteral(":/audio/ToxicIncomingCall.pcm"));
audio.playMono16Sound(Audio::getSound(Audio::Sound::IncomingCall));
}
}

View File

@ -1338,7 +1338,7 @@ bool Widget::newMessageAlert(QWidget* currentWindow, bool isActive, bool sound,
bool notifySound = Settings::getInstance().getNotifySound();
if (notifySound && sound && (!isBusy || busySound))
Audio::getInstance().playMono16Sound(QStringLiteral(":/audio/notification.pcm"));
Audio::getInstance().playMono16Sound(Audio::getSound(Audio::Sound::NewMessage));
}
return true;