Add more SFX for the user's pleasure.
This commit is contained in:
parent
a29780ef2a
commit
09bac5a0ea
@ -106,6 +106,9 @@ END
|
||||
//
|
||||
|
||||
IDR_WAVE_ABOUT WAVE "res\\sounds\\uuaarrgh.wav"
|
||||
IDR_WAVE_SUCCESS WAVE "res\\sounds\\success.wav"
|
||||
IDR_WAVE_ERROR WAVE "res\\sounds\\error.wav"
|
||||
IDR_WAVE_ABORTED WAVE "res\\sounds\\aborted.wav"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
BIN
res/sounds/aborted.wav
Normal file
BIN
res/sounds/aborted.wav
Normal file
Binary file not shown.
BIN
res/sounds/error.wav
Normal file
BIN
res/sounds/error.wav
Normal file
Binary file not shown.
BIN
res/sounds/success.wav
Normal file
BIN
res/sounds/success.wav
Normal file
Binary file not shown.
@ -25,7 +25,7 @@
|
||||
#define VER_LAMEXP_MAJOR 4
|
||||
#define VER_LAMEXP_MINOR_HI 0
|
||||
#define VER_LAMEXP_MINOR_LO 0
|
||||
#define VER_LAMEXP_BUILD 79
|
||||
#define VER_LAMEXP_BUILD 80
|
||||
#define VER_LAMEXP_SUFFIX TechPreview
|
||||
|
||||
/*
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "Thread_Process.h"
|
||||
#include "Encoder_MP3.h"
|
||||
#include "Dialog_LogView.h"
|
||||
#include "Resource.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QRect>
|
||||
@ -265,16 +266,22 @@ void ProcessingDialog::doneEncoding(void)
|
||||
if(m_userAborted)
|
||||
{
|
||||
label_progress->setText(QString("Process was aborted by the user after %1 files!").arg(QString::number(m_succeededFiles)));
|
||||
QApplication::processEvents();
|
||||
PlaySound(MAKEINTRESOURCE(IDR_WAVE_ABORTED), GetModuleHandle(NULL), SND_RESOURCE | SND_SYNC);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(m_failedFiles)
|
||||
{
|
||||
label_progress->setText(QString("Error: %1 of %2 files failed. Double-click failed items for detailed information!").arg(QString::number(m_failedFiles), QString::number(m_failedFiles + m_succeededFiles)));
|
||||
QApplication::processEvents();
|
||||
PlaySound(MAKEINTRESOURCE(IDR_WAVE_ERROR), GetModuleHandle(NULL), SND_RESOURCE | SND_SYNC);
|
||||
}
|
||||
else
|
||||
{
|
||||
label_progress->setText("Alle files completed successfully.");
|
||||
QApplication::processEvents();
|
||||
PlaySound(MAKEINTRESOURCE(IDR_WAVE_SUCCESS), GetModuleHandle(NULL), SND_RESOURCE | SND_SYNC);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,6 +26,9 @@
|
||||
*/
|
||||
#define IDI_ICON1 106
|
||||
#define IDR_WAVE_ABOUT 666
|
||||
#define IDR_WAVE_SUCCESS 667
|
||||
#define IDR_WAVE_ERROR 668
|
||||
#define IDR_WAVE_ABORTED 669
|
||||
|
||||
/*
|
||||
* Next default values for new objects
|
||||
|
Loading…
Reference in New Issue
Block a user