6412989afd
Moved code to set up the console icon into the MUtilities library.
2014-12-03 22:19:18 +01:00
e579a5057d
Fixed possible memory corruption in ProcessThread::init().
2014-11-30 20:25:22 +01:00
6f4b0589c3
Moved more functions into MUtils library, especially all the Qt initialization code and some more OS-specific stuff.
2014-11-29 01:25:18 +01:00
a2f1885717
Moved startup and error handling routines into MUtilities library.
2014-11-26 02:39:02 +01:00
29d8b98a3f
Moved all terminal support functions into MUtilities library.
2014-11-25 22:34:20 +01:00
bdfef0ed1c
Removed the lamexp_fatal_exit() function.
2014-11-25 18:23:03 +01:00
52142c6e6b
Moved the CPU detection code into the MUtils library.
2014-11-25 03:15:03 +01:00
035699c84e
Moved various functions into MUtils library and removed obsolete code from LameXP.
2014-11-25 02:14:42 +01:00
f02043bd21
Some improvements and simplifications to error handling functions.
2014-06-27 16:20:47 +02:00
cc38035087
Happy new year 2014!
2014-01-01 17:05:52 +01:00
a5602cf04d
Reorganized global functions: The file "Global.h" was split into multiple file in order to reduce the dependencies and to make things a bit more logic.
2013-11-03 23:43:21 +01:00
7b016d5fec
Updated license info.
2013-10-23 22:25:04 +02:00
a2e02220dc
Fix compatibility to WindowsXP: The GetErrorMode() API requires Vista or newer, so don't use it!
2013-10-21 18:48:51 +02:00
b54886f242
Introduce QUTF8 macro and replace ".toUtf8().constData()" everywhere.
2013-10-21 15:00:55 +02:00
8a64624ba4
Use the THROW macro instead of plain "throw" in the complete project.
2013-10-18 21:37:40 +02:00
414b261c0d
Improved tool extraction code in InitializationThread. Also implemented better exception handling.
2013-10-18 20:49:22 +02:00
449e438787
Use AudioFileModel_MetaInfo instead of AudioFileModel where appropriate. Also updated MetaInfoModel to work with a AudioFileModel_MetaInfo (not only with a full AudioFileModel).
2013-10-13 00:21:37 +02:00
24217c3b71
More code refactoring: Moved most of the Win32 API dependencies into wrapper functions in Global.cpp, which greatly reduces platform-specific includes.
2013-10-07 00:01:15 +02:00
7602317652
Some code-clean up. Removed "Windows.h" include from "Global.h", because most source files won't need the Win32 API stuff. Also got rid of some Windows 2000 compatibility cruft.
2013-10-06 19:28:12 +02:00
822e1e1ffb
Implemented caching for settings model.
2013-07-14 17:13:01 +02:00
a94e6ecd34
Increase priority of "main" thread.
2013-04-16 21:54:01 +02:00
bd0a370aee
Welcome to year 2013 ;-)
2013-02-08 23:57:50 +01:00
cb042bbf3c
Added new function to detect the current date. Slightly more robust against manipulations.
2013-01-12 01:53:43 +01:00
30507937de
Added global lamexp_fatal_exit() function.
2012-12-11 23:22:20 +01:00
7c5ccbe417
Fixed "always recompile" problem with VS2012 project file. Also removed a superfluous include.
2012-12-10 23:35:14 +01:00
bf34e9e78f
Improved handling of fatal/critical messages in lamexp_message_handler() function.
2012-12-08 00:21:58 +01:00
c095bbee95
Some refactoring of the macros. Use the "do {...} while(0)" template where it makes sense.
2012-07-29 19:13:58 +02:00
17794881a4
Extinguished some remaining uses of argv[] or QApplication::arguments().
2012-06-23 18:18:57 +02:00
30bc239cd8
Now using our own command-line parser, based on GetCommandLineW() + CommandLineToArgvW , instead of using QApplication::arguments(). This is less portable, but Qt's internal command-line parser has some rather strange behavior with processing certain characters. As a result, with Qt's command-line parser, some path names passed to LameXP got screwed up! Specifically "C:\Some Path\''Foo''.mp3" got mangled to "C:\Some Path''Foo''.mp3", i.e. the Backslash disappeared! Should be fixed now.
2012-06-22 15:49:56 +02:00
accee3da7a
When generating the initial output-folder name for the Cue Sheet dialog, make sure there is no folder *or* file of that name yet. The previous code did check for folders only!
2012-06-21 18:31:36 +02:00
027471b385
Updated MediaInfo binary to v0.7.55 (2012-04-05), compiled with ICL 12.1.7 and MSVC 10.0.
2012-04-10 01:25:34 +02:00
7016383fbb
Added support for the Visual Leak Detector. This effects "Debug" builds only.
2012-04-06 22:24:05 +02:00
9b687fff9a
Happy New Year 2012!
2012-01-02 00:52:27 +01:00
1f001a65e2
Better handling of system shutdown. Now using the Qt event system to broadcast a special event when the system is going to shutdown (i.e. WM_QUERYENDSESSION or WM_ENDSESSION). This gives each top-level widget the chance to react to the system shutdown *before* we return from the message handler. Doing any clean-up after returning from the message handler is impossible, because Windows will kill the process immediately after WM_ENDSESSION has been processed. Note that Windows XP (and earlier) will NOT send WM_QUERYENDSESSION or WM_ENDSESSION to processes that have a console attached! Therefore, if we have a debug console attached, we cannot do anything on these systems. Our process will be killed without any notification...
...
Also improved LameXP's IPC mechanism: There now are several slots for IPC-commands in the shared memory area ("queue support"). This way, the sender can post several commands in sequence without getting blocked. The receiver can process those at a later time.
2011-12-29 14:42:20 +01:00
9a9d2e6819
Explicitly handle WM_QUERYENDSESSION and WM_ENDSESSION messages to make sure LameXP won't block Windows from shutting down.
2011-12-27 05:04:53 +01:00
805d3f7393
Added one more "special" application icon.
2011-12-25 22:29:04 +01:00
84053a76f4
Use qMin() and qMax() instead of min() and max() macros. Also use qBound() where appropriate.
2011-11-08 15:12:31 +01:00
5a32fc3b82
Implemented a more correct way to initialize the ITaskbarList3 interface. We now actually wait for the "TaskbarButtonCreated" message.
2011-11-07 17:13:41 +01:00
a98206bd70
Added an option to hibernate the computer ("suspend to disk") instead of shutting it down ("power off").
2011-10-22 01:13:28 +02:00
6a04c29ad9
Some refactoring: Moved tools info into a separate header file + added simple self-test to Thread_Initialization.
2011-10-19 00:24:03 +02:00
1fc851af2b
Added CLI parameters to overwrite the CPU feature flags. Useful for testing.
2011-09-20 00:03:51 +02:00
2da39922ca
Added warnings when LAME algorithm quality is set to "extreme" values.
2011-08-25 03:44:46 +02:00
7e14e0f1a7
Restored Windows 2000 support (experimental!).
2011-08-15 15:27:56 +02:00
327ca1ae75
Added 'wma2wav' as WMA decoder and removed all support for WMA decoder by NCH Swift Sound.
2011-07-26 22:17:14 +02:00
3ad816f660
Show a warning to the use in case of "slow" startup (i.e. when buggy a/v is slowing down the startup procedure)
2011-06-24 18:17:04 +02:00
8eba258624
Use structured exception handling.
2011-06-22 01:10:53 +02:00
4bb7185a0f
Added global exception handler routine.
2011-04-17 15:53:28 +02:00
60ac414c30
Updated LAME binary to v3.99 Beta-0 (2011-04-16), compiled with ICL 12.0.3. Also updated LAME switches accordingly.
2011-04-16 21:21:08 +02:00
26fe0b0499
Slightly refactored macros.
2011-04-14 01:40:11 +02:00
431ed392e2
Rewrote initialization code: Instead of extracting all binaries at startup and later selecting the suitable binary for the detected CPU, we will now extract only the binaries that are suitable for the detected CPU. This way we need to extract fewer files at startup. Also CPU selection can be skipped later, as there will be only one registered binary for each tool (the one suitable for the CPU).
2011-04-11 02:53:29 +02:00