Commit 3c310f4a authored by Alice Weigt's avatar Alice Weigt

refactor: Use new getSound function

parent ce9406c9
......@@ -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>
......
......@@ -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));
}
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment