diff --git a/audio/notification.pcm b/audio/notification.pcm new file mode 100644 index 000000000..d57ac783d Binary files /dev/null and b/audio/notification.pcm differ diff --git a/audio/notification.wav b/audio/notification.wav deleted file mode 100644 index 2be40fd7f..000000000 Binary files a/audio/notification.wav and /dev/null differ diff --git a/res.qrc b/res.qrc index 508fbef28..6104327f8 100644 --- a/res.qrc +++ b/res.qrc @@ -6,7 +6,6 @@ <file alias="DejaVuSans.ttf">res/DejaVuSans.ttf</file> </qresource> <qresource prefix="/"> - <file>audio/notification.wav</file> <file>img/icon.png</file> <file>img/contact.png</file> <file>img/contact_dark.png</file> @@ -134,5 +133,6 @@ <file>ui/fileTransferInstance/emptyLRedFileButton.png</file> <file>ui/fileTransferInstance/emptyRGreenFileButton.png</file> <file>ui/fileTransferInstance/emptyRRedFileButton.png</file> + <file>audio/notification.pcm</file> </qresource> </RCC> diff --git a/widget/widget.cpp b/widget/widget.cpp index 0f7147f0d..7be90b784 100644 --- a/widget/widget.cpp +++ b/widget/widget.cpp @@ -533,7 +533,7 @@ void Widget::newMessageAlert() { QApplication::alert(this); - static QFile sndFile(":audio/notification.wav"); + static QFile sndFile(":audio/notification.pcm"); static QByteArray sndData; if (sndData.isEmpty()) { @@ -544,7 +544,7 @@ void Widget::newMessageAlert() ALuint buffer; alGenBuffers(1, &buffer); - alBufferData(buffer, AL_FORMAT_STEREO16, sndData.data(), sndData.size(), 44100); + alBufferData(buffer, AL_FORMAT_MONO16, sndData.data(), sndData.size(), 44100); alSourcei(core->alMainSource, AL_BUFFER, buffer); alSourcePlay(core->alMainSource); }