1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 08:29:27 +02:00

9718 Commits

Author SHA1 Message Date
Paul Licameli
bbda68c079 ModuleManager doesn't specially start up mod-script-pipe...
... The standard module dispatch can do that.
2021-05-16 07:03:12 -04:00
Paul Licameli
c7834257d8 Crude way to let modules depend on others: multiple load passes...
... Repeatedly pass through the list of modules that need to be opened, so
long as the list is not empty and at least one module loaded in the last pass.

This discovers dependencies of modules on other modules, avoiding the need to
describe the dependencies and make one pass in some topologically sorted order.

Which would be smarter, but would require much other work.
2021-05-16 07:03:12 -04:00
Paul Licameli
059f96173b Some factoring of ModuleManager::Initialize 2021-05-16 07:03:12 -04:00
Paul Licameli
332ed4ab61 Separate detection of module load failure from error messaging 2021-05-16 07:03:12 -04:00
Paul Licameli
e7f8f36700 A macro for boilerplate to generate required module entry points 2021-05-16 07:03:12 -04:00
Paul Licameli
fd94b66483 Don't duplicate defs of DLL_IMPORT, DLL_API, ModuleDispatchTypes 2021-05-16 07:03:11 -04:00
Paul Licameli
dcd8bca896 Nonlazy resolution of symbols at load time for modules...
... Forcing appropriate failure to load modules with unsatisfied symbols on all
platforms.
2021-05-16 07:03:11 -04:00
Paul Licameli
e52115630a Remove argument of ModuleManager::Initialize() unused since a6d0b3f 2021-05-16 07:03:11 -04:00
James Crook
d0ff48f3bd Bug 2754 - Change Tempo & Pitch and Sliding Stretch with selected audio in negative time crash Audacity on windows (error on Mac) 2021-05-15 11:36:53 +01:00
Paul Licameli
7302fc584f Move RecordingSchedule, PlaybackSchedule to new files 2021-05-14 16:26:29 -04:00
Paul Licameli
a12ec0d11b Duplicate AudioIOBase into PlaybackSchedule...
... please verify empty file diffs; this simplifies review of the next commit
2021-05-14 16:25:53 -04:00
Paul Licameli
9a66255013 Move AudioIOBase::mPlaybackSchedule up into AudioIoCallback 2021-05-14 16:25:41 -04:00
Paul Licameli
d92a68f076 ViewInfo does not depend on AudioIOBase...
... ViewInfo should only be concerned with screen geometry.

(And so it won't depend on AudioIO (even higher level) after stream time moves
there.)

PlaybackScroller receives the timer event directly (not from ViewInfo) and
caches playback position instead.  Then, as before, it propagates the event
to PlayIndicatorOverlay.
2021-05-14 16:25:14 -04:00
Paul Licameli
aa8e4eef06 Windows builds need a complete type for wxWeakRef parameter...
... Guarantee that in header files that declare such wxWeakRefs
2021-05-14 16:24:59 -04:00
Paul Licameli
d7f643768c Bugs 2778, 2339, Issue 887: Translation of some effect names...
... Those for which the internal name and the user-visible English names differ,
or that needed disambiguating context for i18n,  were always shown as English
in the menus.

Silence and Filter Curve were the only two examples. There are others.
2021-05-14 14:27:23 -04:00
Paul Licameli
cf948ece52 Eliminate duplications of string literal "Nyquist Prompt" 2021-05-14 13:08:02 -04:00
Paul Licameli
9e70fa71ba Issue 887: Some strings didn't translate, though in catalogs...
... What they had in common was the use of the XC macro to specify a
disambiguating context string.  Example: "Interface" page of preferences.

TranslatableString had not implemented this
correctly except in the less usual case of plurals.
2021-05-13 10:27:08 +01:00
Paul Licameli
5b77d19324 Missing $ -- thank you vladkosi 2021-05-12 16:30:15 -04:00
Paul Licameli
b52192c4c4 Fix builds with precompiled headers, which broke at 794f4e5 2021-05-12 13:02:29 -05:00
Paul Licameli
82a1534226 Remove redundant test of USE_MIDI ...
... See instead how cmake_proxies/CMakeLists.txt already enforces that
if EXPERIMENTAL_MIDI_OUT is true, then USE_MIDI must be true
2021-05-12 13:02:29 -05:00
Paul Licameli
85a8d0ac97 Keep !EXPERIMENTAL_MIDI_OUT compilable 2021-05-11 19:32:10 -05:00
Dennis Braun
8bb55b8bbf Fix CVE-2020-11867 2021-05-10 20:53:33 +03:00
Leland Lucius
95bcb08b4b Revert "Cleanup and update FFmpeg support to v4.3.1 (#741)"
Removing until a decision is made on how to handle the required
library upgrade.
2021-05-10 10:33:01 -05:00
Paul Licameli
406b23cae7 More uses of AUDACITY_DLL_API...
... in many places where the function call will later need to be between
modules (or libraries, or the executable) and the annotation will be a necessity
to keep the linkage working on Windows.

That's all that this sweeping commit does.
2021-05-10 10:46:55 -04:00
Paul Licameli
fbfccf1393 Delete or un-inline some constructors, assignments, others...
... Which will be needed for various reasons for Windows builds of certain
modularizations, which will otherwise complain that they can no longer
generate them as inlines.

In one case, deleted copies require explicitly defaulted moves, but they will
work as generated inline.
2021-05-10 10:46:55 -04:00
Paul Licameli
3060530b4f Remove outdated comments about Audacity.h and AUDACITY_DLL_API 2021-05-10 08:03:31 -04:00
Paul Licameli
c5ebc396eb Audacity.h has shrunk to nothing, now remove it! 2021-05-10 00:05:23 -05:00
Paul Licameli
d51f505cd9 Define Audacity version constants in CMake not Audacity.h 2021-05-10 00:05:23 -05:00
Paul Licameli
d9b868334b Remove special version string for Dark Audacity 2021-05-10 00:05:23 -05:00
Paul Licameli
e6cd0b88bc Don't forward declare wxWindow in Audacity.h 2021-05-10 00:05:23 -05:00
Paul Licameli
794f4e5877 Inclusion of the correct config header on command line using CMake 2021-05-10 00:05:23 -05:00
Paul Licameli
229b82a502 Move definitions of safenew, PROHIBITED, _DEBUG into CMake 2021-05-10 00:05:23 -05:00
Paul Licameli
f2b53c82eb Move definition of AUDACITY_DLL_API into src/CMakeLists.txt 2021-05-10 00:05:23 -05:00
Paul Licameli
b9ca0acb4a Move some macros out of Audacity.h into various header files 2021-05-10 00:05:23 -05:00
Paul Licameli
79b259851f Version check on gcc compiler moved to CMakeLists.txt 2021-05-10 00:05:23 -05:00
Paul Licameli
5844b2090a Generate a picture of module dependencies at configure time 2021-05-06 09:15:22 -05:00
Paul Licameli
fe8659f435 Separate CMake function for pervasive C++ flags, reuse it in modules 2021-05-06 09:15:22 -05:00
Paul Licameli
ca7d96f20a Transitive link dependencies via Audacity simplify module CMakeLists 2021-05-06 09:15:22 -05:00
Paul Licameli
6f58cb8294 Hoist the generation of the config header into top CMakeLists...
... Because it depends on having visited various lib-src directories, which I
want to delay until visiting various of the modules, and I also want to visit
src before the modules, because that's bottom-up dependency ordering.

So the step should not be done in src.
2021-05-06 09:15:22 -05:00
Leland Lucius
25089ff3ee Modules should go into <prefix>/<libdir>/audacity/modules on Linux 2021-05-06 00:47:27 -05:00
Leland Lucius
72c5ed863c
Cleanup and update FFmpeg support to v4.3.1 (#741)
* Cleanup and update FFmpeg support to v4.3.1

* Removing testing leftover
2021-05-05 10:54:36 -05:00
James Crook
92d1a34366 Update Credits
- Add Dmitry
- Show roles for Peter
2021-05-05 15:21:09 +01:00
Paul Licameli
c1c8c373d4 Bug2759: A failed macro command should not leave vacuous undo item 2021-05-01 19:24:00 -05:00
Paul Licameli
38e0a982ce Bug2772: Crash after failed open of corrupt project 2021-05-01 12:46:27 -04:00
Paul Licameli
5e21f526b4 Replace inappropriate assertion with only a log message 2021-05-01 12:10:57 -04:00
James Crook
cf0293396d Fix project backup
I broke this in the development version by changing the return type
of FastMode to return an Sqlite return code.
2021-04-30 09:09:12 +01:00
Paul Licameli
e653b4aaf8 Eliminate Experimental.h, configure compile options instead...
... This makes it impossible to forget to include the EXPERIMENTAL definitions
(such as when cutting and pasting code) and so get unintended quiet changes of
behavior.

The EXPERIMENTAL flags are now specified instead in new file Experimental.cmake
2021-04-27 12:40:07 -04:00
Paul Licameli
c781a108e3 Move compile-time testing of crash report support out of Experimental.h 2021-04-27 12:40:06 -04:00
Paul Licameli
83efa5a0df Remove flags from Experimental.h not used anywhere else 2021-04-27 12:40:06 -04:00
Paul Licameli
b45882e8a0 Move some conditionally compiled declarations out of Experimental.h 2021-04-27 12:40:06 -04:00