diff --git a/LameXP.rc b/LameXP.rc index ae1581ee..717933c6 100644 --- a/LameXP.rc +++ b/LameXP.rc @@ -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" ///////////////////////////////////////////////////////////////////////////// // diff --git a/res/sounds/aborted.wav b/res/sounds/aborted.wav new file mode 100644 index 00000000..e5184845 Binary files /dev/null and b/res/sounds/aborted.wav differ diff --git a/res/sounds/error.wav b/res/sounds/error.wav new file mode 100644 index 00000000..aa9ad5b7 Binary files /dev/null and b/res/sounds/error.wav differ diff --git a/res/sounds/success.wav b/res/sounds/success.wav new file mode 100644 index 00000000..0f611254 Binary files /dev/null and b/res/sounds/success.wav differ diff --git a/src/Config.h b/src/Config.h index 30ee4c76..602d08c8 100644 --- a/src/Config.h +++ b/src/Config.h @@ -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 /* diff --git a/src/Dialog_Processing.cpp b/src/Dialog_Processing.cpp index 4942449a..7e9bf3cf 100644 --- a/src/Dialog_Processing.cpp +++ b/src/Dialog_Processing.cpp @@ -28,6 +28,7 @@ #include "Thread_Process.h" #include "Encoder_MP3.h" #include "Dialog_LogView.h" +#include "Resource.h" #include #include @@ -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); } } diff --git a/src/Resource.h b/src/Resource.h index 278f71c2..9aeb6bf2 100644 --- a/src/Resource.h +++ b/src/Resource.h @@ -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