1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-10 22:21:08 +02:00

44 Commits

Author SHA1 Message Date
james.k.crook@gmail.com
8a9987a0d9 From: martin@steghoefer.eu [PATCHES 02-15 of 15] Fix runtime problem with wxWidgets 3.0:
Correct string formatting for:
2/15  %d + enum => %d + int
3/15  %lld + int64_t => %lld + long long
4/15  %d + int64_t => %lld + long long
5/15  %d + double => %f + double
6/15  %d + int32_t => %d + int
7/15  %d + intptr_t => %p + void*
8/15  gint, guint
9/15  %d + long => %ld + long
10/15 %n + int => %d + int
11/15 %x + int => %x + unsigned int
12/15 %f + int => %d + int
13/15 %S + wxChar* => %s + wxChar*
14/15 %d + size_t => %d + int
15/15 %d + size_t => %lld + long long

"The functions wxString::Format, wxString::Printf (and others indirectly) have become stricter about parameter types that don't match (format specifier vs. function parameters). So the bugs (that were already present in audacity before) become visible in wx3.0 as error message dialogs. I've checked all occurrences of Printf, wxPrintf, PrintfV, Format, FormatV, wxLogDebug and wxLogError systematically and made the type match."

Note (9/15): In TrackPanel.cpp, ExportMP2.cpp and CompareAudioCommand.cpp this patch supersedes related change done in r13466 because the new solution requires fewer casts and therefore simplifies the code.

Note: Many .po files are affected, and we need to be very careful about this.  Incorrect "%d" and similar in translation files may lead to crashes in those languages (only).  This is something we should actually have been more careful about in the past.  We need to write a script to check that the "%d" and similar format specifiers match between English and translation.
2014-11-08 16:42:34 +00:00
lllucius
bdcefb4850 Preliminary changes for wxWidgets 3.0.1
We can't go to 3.0.1 yet as there are still build issues on
Linux and OSX.  You can get Windows to build, but there's
still some display issues.

These changes should work with wxWidgets 2.8.12 as well, so
we can take our time to get things working properly before
switching over.
2014-10-06 08:10:50 +00:00
benjamin.drung@gmail.com
149fcafc1c Replace tabs by spaces. 2014-06-05 22:04:22 +00:00
benjamin.drung@gmail.com
277932dccb Remove trailing spaces. 2014-06-03 20:30:19 +00:00
benjamin.drung@gmail.com
4d4580a042 FFmpeg: Replace long deprecated functions by current ones. 2014-05-31 14:01:57 +00:00
benjamin.drung@gmail.com
33b9e9336f FFmpeg: Replace deprecated av_close_input_file by avformat_close_input. 2014-05-29 15:50:47 +00:00
benjamin.drung@gmail.com
0a1999130d Drop compatibility for libav/FFmpeg < 0.7. 2014-05-25 21:08:58 +00:00
RichardAsh1981@gmail.com
6758caa5e1 Make a large number of global variables static so they only have file scope when that is all they need. Part of a patch by Campbell Barton 2013-09-21 19:11:41 +00:00
v.audacity
cc876ce7be just some cleanups on FIXMEs and unused method parameters 2013-08-31 05:57:48 +00:00
v.audacity
c7daafede2 In off-list discussion, Steve mentioned that kdevelop / kate highlighting recognizes "FIXME", but not "FIX-ME", which has been the Audacity convention. This commit changes Audacity code to use the "FIXME" convention (though I've never known it as convention and MSVC doesn't recognize it).
Also, minor change in WaveTrack.cpp in the effort on bug 641. Should have no functional difference.
2013-08-24 20:30:47 +00:00
RichardAsh1981@gmail.com
fc0cb41356 fix the build of on-demand ffmpeg, disable the preference if FFmpeg support is not compiled in. Patch by Michael Chinen. This feature is currently off in experimental.h. 2013-05-25 15:36:04 +00:00
v.audacity
c26b3c6b49 Campbell Barton's further patch to turn many, many tabs to our 3-space convenbtion 2013-02-23 04:33:20 +00:00
richardash1981
393129d9b9 fix the line endings on this file, and set svn:eol-style to native so they stay fixed 2013-01-01 15:54:53 +00:00
v.audacity
24af4febea Bug 539 (P2) - Audacity does not build if configured --without-ffmpeg
Revert to quick fix of r 11867. Steve reports Debian build error with r11868. Left that code in, because this should override it.
2012-07-25 06:20:17 +00:00
v.audacity
d90e6c5285 Bug 539 (P2) - Audacity does not build if configured --without-ffmpeg
more pinpointed fix that should close this
2012-07-25 02:00:48 +00:00
v.audacity
15f9695d18 Fix a compiler warning. 2012-07-16 23:46:20 +00:00
v.audacity
87610cea39 Benjamin Drung's disable-dynamic-lame.patch for http://bugzilla.audacityteam.org/show_bug.cgi?id=233 2012-06-25 01:41:57 +00:00
mchinen
b8f19b58d9 OD FFmpeg: disable seeking (caused issues on windows) 2012-06-17 13:33:13 +00:00
mchinen
a09fe983ed remove debug printfs 2012-06-01 06:11:54 +00:00
mchinen
c4f1a52413 OD FFmpeg: fix a bug with demand seeking by using a safer seek test 2012-06-01 06:11:49 +00:00
mchinen
1fb7a1dcee OD FFmpeg: do not attempt to correct stream lag unless a seek was demanded by user 2012-06-01 06:11:45 +00:00
mchinen
2aedaaa68d lazy evaluate for OD ffmpeg seek test 2012-06-01 06:11:41 +00:00
mchinen
77917b3268 change flushing case for OD ffmpeg 2012-06-01 06:11:36 +00:00
mchinen
e5520d0b7d fix case where DecodeFrame() was not returning errors 2012-06-01 06:11:31 +00:00
mchinen
f837c1fefd fix indentation 2012-06-01 06:11:26 +00:00
mchinen
80a2b68bcf Fix warnings for OD ffmpeg 2012-06-01 06:11:21 +00:00
mchinen
816b58bc08 integrate OD FFmpeg to work with multiple formats, including wav
also move streamContext to ffmpeg.h to allow for refactoring of import code
2012-06-01 06:11:07 +00:00
mchinen
8cb2a38fbe restore build for EXPERIMENTAL_OD_FFMPEG
EXPERIMENTAL_OD_FFMPEG is still commented out
2012-06-01 06:11:01 +00:00
v.audacity
5f5b9778de Fixes per Vigilant Sentry (http://www.vigilantsw.com/)
* Fix memory leaks.

* Add comments about initializations and checking for successful results.

* Add checks for NULL deref.

* Consistency in "TODO" vs "TO-DO" comments!
2012-02-08 05:09:14 +00:00
v.audacity
3a1d4334f2 Make wxLog* calls consistently not have \n at the end. Turn some wxLogWarning calls to wxLogError. Put some periods at the ends of sentences. 2011-10-09 21:14:03 +00:00
lllucius
f50be91900 Bug #176 - Support newer versions of FFmpeg.
Also includes Benjamin's ffmpeg-configure-v2.patch.
2011-04-02 02:10:50 +00:00
richardash1981
2a7c7de30d Commit a warnings removal patch from Benjamin Drung to correct a string of minor misdemeanors. 2011-02-07 20:24:04 +00:00
v.audacity
3729f067be more progress on bug 113
better handling of error conditions in all BuildFromXML methods, per comment: 

// BuildFromXML methods should always return a BlockFile, not NULL,  
// even if the result is flawed (e.g., refers to nonexistent file), 
// as testing will be done in DirManager::ProjectFSCK().
2010-07-30 03:04:37 +00:00
mchinen
bce418b19b fix possible deadlock for OD.
Also comment related cleanups.
2010-07-22 15:28:54 +00:00
mchinen
af27b274d1 Fix missing lock mutex in main OD loop (!)
This will fix the OD bug where some tasks never start on faster computers that caused the race condition.
2010-07-19 13:41:16 +00:00
mchinen
0fac236e9a Fix whitespace and comments in ODComputeSummaryTask and ODManager 2010-07-19 13:25:52 +00:00
v.audacity
cd96baaa4c Fix a compiler warning. 2010-07-17 22:31:02 +00:00
mchinen
5a5957b422 Add seek support to OD-based FFmpeg import.
Also some minor refactoring.
This feature works with mp3 right now - may work on other formats, but that will be a seperate commit.
It is not enabled so most of the changes won't even be compiled, and those that do won't be run.
To enable it uncommment the EXPERIMENTAL_ODFFMPEG def in Experimental.h
2010-07-05 14:38:47 +00:00
mchinen
5c88a0d93a adding volatile flags to certain OD bools that get changed by the UI. May fix reported stalled tasks which I can't reproduce. 2010-05-30 14:39:18 +00:00
BusinessmanProgrammerSteve
4cdbbce01f Add ODDecodeFFmpegTask to Unix makefile, fix some errors and warnings 2010-03-19 21:41:44 +00:00
mchinen
b07f23d6de added on-demand support for non-seeking loading of FFmpeg files. This feature is not on, controlled by ifdefs via the #define EXPERIMENTAL_OD_FFMPEG in Experimental.h 2010-03-19 14:57:10 +00:00
mchinen
5ccce1ed4b checking in cleanup of on-demand files following james' review. also speeds up od cursor updating when user clicks for on-demand 2010-03-08 01:52:38 +00:00
businessmanprogrammersteve
a55c20be66 Fix most of the compile warnings I get on Linux (but not the Audacity Logo
xpm stuff or a few things in FFMPEG export)
2010-02-12 21:36:20 +00:00
ra
e74978ba77 Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches 2010-01-23 19:44:49 +00:00