1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

2473 Commits

Author SHA1 Message Date
benjamin.drung@gmail.com
7e72c4712b Revert defining different headers depending on FFMPEG_VERSION.
The preprocessor definition FFMPEG_VERSION cannot be used to determine whether
the libav* header are provided by the FFmpeg or libav project. Therefore an own
proprocessor definition is needed to make the differentiatiion.

IS_FFMPEG_PROJECT should be set by configure instead of hard-coding it in
FFmpeg.h.
2014-06-02 21:35:48 +00:00
benjamin.drung@gmail.com
729d7e31a3 Drop support for sonic audio codec.
libav dropped the support for the sonic audio codec.
2014-06-01 21:38:20 +00:00
benjamin.drung@gmail.com
0fa894c196 Use #define for backward compatibility only when --disable-dynamic-loading was specified. 2014-06-01 16:46:34 +00:00
benjamin.drung@gmail.com
b55c74b210 Define slightly different headers for libav.
Some parameters of libav functions have no 'const' flag in contrast to their
FFmpeg counterparts. Assume that the headers come from FFmpeg if FFMPEG_VERSION
is defined. Otherwise assume that the headers come from libav.
2014-06-01 16:37:17 +00:00
stevethefiddle@gmail.com
6003abb21d Bug 713 - remove duplicate "dB" label. 2014-06-01 13:01:42 +00:00
benjamin.drung@gmail.com
5308169b20 Include <wx/dynlib.h> on Linux for wxDynamicLibrary. 2014-05-31 20:30:39 +00:00
benjamin.drung@gmail.com
0fee6939e2 Fix default LADSPA search paths on Linux.
The default LADSPA search paths should be
/home/<user>/.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa according to
http://www.ladspa.org/ladspa_sdk/shared_plugins.html

Additional search in the ladspa subdirectory of the system library directory
(which could be /usr/lib/x86_64-linux-gnu/ on Debian, for example).

Bug-Debian: http://bugs.debian.org/724836
Bug-Ubuntu: https://launchpad.net/bugs/1261654
2014-05-31 20:01:21 +00:00
benjamin.drung@gmail.com
32454b3e6e ExportFFmpeg.cpp: Define snprintf as _snprintf on Windows. 2014-05-31 14:41:59 +00:00
benjamin.drung@gmail.com
f36e961bb1 Remove unused FFmpeg function declarations. 2014-05-31 14:26:24 +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
3416b2a8c1 Drop compatibility for FFmpeg < 1.2 and libav < 0.8.
Dropping support for unsupported upstream FFmpeg/libav versions makes our code
simpler by removing preprocessor conditionals.
2014-05-31 13:23:00 +00:00
lllucius
e77ad86b8d Misplaced include broke Windows build... 2014-05-31 12:16:38 +00:00
benjamin.drung@gmail.com
b5fd9bc068 FFmpeg: Add support for libav 0.8.
Thanks to Michael Niedermayer for the tips.
2014-05-29 21:04:45 +00:00
benjamin.drung@gmail.com
ffe29894b8 Define AV_CODEC_ID_* as CODEC_ID_* for old libav/FFmpeg versions. 2014-05-29 17:53:51 +00:00
benjamin.drung@gmail.com
feae3ffa98 FFmpeg: Rename all CODEC_ID_* to AV_CODEC_ID_*. 2014-05-29 16:02:46 +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
0a5ed743b8 Fix -Waddress compiler warning. 2014-05-29 15:38:54 +00:00
benjamin.drung@gmail.com
2e8222c573 Correct spelling gstreamer to GStreamer. 2014-05-29 14:08:43 +00:00
benjamin.drung@gmail.com
a361823829 Update generated autotools files for libnyquist. 2014-05-29 13:36:35 +00:00
benjamin.drung@gmail.com
1463d07aea Remove -Wstrict-prototypes build flag from libnyquist.
The build flag -Wstrict-prototypes produces many warnings and we do not want to
modify the upstream nyquist code to just remove compiler warnings.
2014-05-29 13:34:48 +00:00
benjamin.drung@gmail.com
de982fba92 fix pcm u8, s24, s32
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-29 11:53:31 +00:00
benjamin.drung@gmail.com
f61b248156 fix sample_fmts end check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-29 11:53:10 +00:00
stevethefiddle@gmail.com
602fdc3ee2 Bug 722 - move basic edit commands to root of Edit menu. 2014-05-28 22:13:22 +00:00
lllucius@gmail.com
5b18fe3347 Enable VST support on Linux 2014-05-28 06:45:03 +00:00
benjamin.drung@gmail.com
b556d83c54 Fix indentation (to multiple of three) and remove trailing spaces. 2014-05-27 22:06:58 +00:00
benjamin.drung@gmail.com
cda7ade23a ExportFFmpeg: dont set global_quality to -99999
This confuses the native aac encoder at least.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:49:04 +00:00
benjamin.drung@gmail.com
4348c9e9c4 ExportFFmpeg: set strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
This allows using the native AAC encoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:48:36 +00:00
benjamin.drung@gmail.com
8149b34861 ExportFFmpeg: remove unused variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:47:54 +00:00
benjamin.drung@gmail.com
16f834f0c3 FFmpeg: raise log level to info
Log level info is the default in FFmpeg and its quite hidden anyway so users
should not see it anyway unless they look/search for it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:47:29 +00:00
benjamin.drung@gmail.com
a4e0ff05fb ExportFFmpeg: also check for CODEC_CAP_VARIABLE_FRAME_SIZE
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:46:26 +00:00
benjamin.drung@gmail.com
9755771524 avoid using AVCodecContext->frame_size as the one and only frame size
It can be 0 in case of variable frame size support.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:45:52 +00:00
benjamin.drung@gmail.com
813f8450ea remove special case for flac, flac has smalllast frame cap set
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:40:22 +00:00
benjamin.drung@gmail.com
259e9361da remove unused argument to encode_audio()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:39:54 +00:00
benjamin.drung@gmail.com
3a56978e17 fix frame_size=0 export case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:37:15 +00:00
benjamin.drung@gmail.com
73295bbc02 FFmpeg: use Codec name instead if codec_id integer to identify codec
This allows selecting the intended codec when there are multiple with the same
codec_id

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
2014-05-27 21:36:01 +00:00
benjamin.drung@gmail.com
da47fe0373 Update generated autotool files
...by running autoreconf --no-recursive --install
2014-05-27 21:02:04 +00:00
benjamin.drung@gmail.com
9675f18ac4 src/Makefile.am: Add Andrew Hallendorff's SSE accelerated Equalization files. 2014-05-27 20:57:36 +00:00
lllucius
de27ef14c9 Restore preset behavior until a better solution is devised. 2014-05-27 07:08:10 +00:00
lllucius@gmail.com
bc6904077f Fixing a crash exposed by the kn0ck0ut LV2 plugin.
After reporting the crash to the kn0ck0ut LV2 maintainer, he pointed out that
Audacity wasn't connecting to all required LV2 ports.  In this case it was the
latency port.  This corrects that oversight.

In addition, since I was fiddling with the latency port, I figured I might as
well go ahead and add the necessary code to compensate for it.
2014-05-27 02:06:00 +00:00
lllucius@gmail.com
d50f893864 Fixes some minor issues reported by valgrind. 2014-05-27 02:02:59 +00:00
lllucius
c79bf9b1fa Bug fixes and additions to VST plugins
Bugs fixed:

1)  When scanning for VSTs on Mac, bogus lines could show up in the list if the .vst
    file had more than one Info.plist in the bungle.  GRM and TAL plugins exhibited
    this issue.
2)  When scanning for VSTs on Mac, reuse of a variable caused the plugin to be
    accepted even though it was a synth.  So it would show up in the Generate menu.
3)  I recently disabled the the plugin list dialog once the OK button was clicked
    to prevent clicking it again.  This was overkill and prevented clicking Cancel
    while the scan was running.  So, changed it to only disable the OK button.
4)  The new Settings dialog would save the settings even if you clicked Cancel.
5)  Detecing the overlay window on Mac didn't work in all cases.  Did more research
    and I believe the revised method is correct. (Window list is z-order sorted)
6)  When changing the preset from the top combo, the return value from the
    plugin was not check when getting the current preset (program).  It assumed
    that there was always an active program.  This is not at all correct.

Most of the new additions are an attempt to be more compatible with more plugins.
I have not found any plugins that crash Audacity anymore, so I'm not sure how to
really give these changes a good workout.  However, Guitar Rig 5 and Reaktor 5
are now quite usable since one of the additions was window resizing.

1)  Refreshed the aeffectx.h header from the LMSS project and merged in some
    additional changes from Ardour.
2)  Changed the method prototypes to reflect the new aeffectx.h header.
3)  Plugin scan dialog now has a "Select All" and "Clear All" buttons.  (On a
    personal note, this was a major boon while testing...way easier to include
    a single VST.)
4)  Uses a timer now instead of the wxIdleEvent to send effIdle messages to the
    plugin.  Idle could be all many times more than was necessary.
5)  Process level is now reported when requested by the plugin.  Don't know how
    useful it is, but many plugins request it.
6)  Two new events are sent to the dialog from the audioMaster callback to support
    window updating and resizing.  Figured it was safer this way since the callback
    "might" be called from a different thread (as far as I could figure out anyway).
7)  Current sample rate is now returned to the plugin when requested.
8)  The dialog now resizes when the plugin informs us of a size change to its window.
    This was one of the major drawbacks to using Guitar Rig and Reaktor as their
    window would resize and pretty much be useless since the dialog didn't adjust to
    the new size.  Kontakt was another that even includes a draggable resizer in the
    bottom right corner which the dialog supports just fine now.  (Not that Kontakt
    is actually supported though.)
9)  The preset bar is now updated when the plugin informs us of "major" changes with
    the UpdateDisplay opcode.  I noticed that when changing presets within Guitar
    Rig, the preset bar didn't change.

Discovered limitation:

Guitar Rig and, it seems, other plugins will only report a maximum of 128 presets (or
rather programs) even if they support more.  I'd figure out a way to populate the
combo with all of the presets via some major hackage, but it didn't do any good since
Guitar Rig simply refused to set any program number above 128.

Not much can be done about this...just a heads up.
2014-05-26 01:36:14 +00:00
benjamin.drung@gmail.com
12a9d61d56 Use CodecID instead of AVCodecID for old libav/FFmpeg versions. 2014-05-25 22:15:59 +00:00
benjamin.drung@gmail.com
0a1999130d Drop compatibility for libav/FFmpeg < 0.7. 2014-05-25 21:08:58 +00:00
benjamin.drung@gmail.com
31f66d9cfa Remove unused PKT_FLAG_KEY definition. 2014-05-25 19:25:56 +00:00
benjamin.drung@gmail.com
80fa80dcf4 Use av_free instead of avcodec_free_frame for old libav/FFmpeg versions. 2014-05-25 19:24:02 +00:00
benjamin.drung@gmail.com
14b47b46ab Import headers of FFmpeg 2.2.2 into lib-src/ffmpeg. 2014-05-25 17:46:34 +00:00
benjamin.drung@gmail.com
7d2ca59107 Include more necessary xpm files in source tarball. 2014-05-24 21:31:56 +00:00
benjamin.drung@gmail.com
4550d9b338 Add images/AudacityLogoWithName.xpm to EXTRA_DIST. 2014-05-24 20:04:08 +00:00
benjamin.drung@gmail.com
212e70a25f Exclude libresample from source tarball (generated by automake).
libsoxr is the default resampling library.
2014-05-24 20:00:29 +00:00
benjamin.drung@gmail.com
5e54fc635c lib-src/Makefile.am: Separate optional subdirs into separate variable. 2014-05-24 17:57:39 +00:00