Commit Graph

1924 Commits

Author SHA1 Message Date
Paul Licameli 132f04d272 ManualPageID is a new type; rewrite HelpSystem::ShowHelp and its uses 2021-07-01 13:35:57 -04:00
Paul Licameli cfbdd2d22e Type alias ManualPageID for wxString used in many places...
... eliminating many direct mentions of wxString.  A real type distinction will
be made next.
2021-07-01 13:33:04 -04:00
Paul Licameli 04a0292d1d Simplify iterations over PluginManager; remove a friend 2021-06-30 21:15:19 -04:00
Paul Licameli 8fda526577 Simplify memory management in PluginManager 2021-06-30 21:15:19 -04:00
Paul Licameli 77dab158c3 Make Audacity build in C++17 ...
... Fixing many conditional operators with explicit construction of wxString
instead of simple string literals;

And fixing allocation of more strictly aligned structures on Mac, without need
for 10.14 as the minimum SDK, by means of some class-specific operators new
and delete.
2021-06-18 21:44:55 +03:00
Dmitry Vedenko 690772ccb0 Use ShowExceptionDialog when we want to show ErrorReportDialog 2021-06-08 08:08:26 -07:00
Paul Licameli 64d7ca7403 New utility library 2021-06-02 07:08:19 -04:00
Paul Licameli 434f3919f9 MemoryX.h does not include wx/utils.h 2021-06-02 07:08:19 -04:00
Paul Licameli e6e96de0fd Replace most inclusions of MemoryX.h with <memory> ...
... Most often it was needed for a custom definition of std::make_unique, but
we build C++14 now.
2021-06-02 07:08:19 -04:00
Paul Licameli 9c70887c34 A rewrite in Nyquist to make reinterpret_cast unnecessary 2021-05-27 11:38:10 -04:00
Paul Licameli f369b5109b Change almost all uses of WaveTrack::Get() to GetFloats() ...
... A call graph browser easily shows that the extra generality of fetching
samples in some other format is only used in Benchmark -- where the format is
always the same as what the track is constructed with.

This makes re-verification of the claims in comments two commits ago easier.
2021-05-27 11:38:10 -04:00
Paul Licameli 6eb5f3ac5b Eliminate CopySamples calls where destination is always float...
.. Call the function SamplesToFloats instead, or in one place, where source
is also always float, just do memcpy.

Dithering never happened in these cases.
2021-05-27 11:38:09 -04:00
Paul Licameli 45c6190c51 New library lib-strings for Identifier and internationalization 2021-05-27 09:51:32 -04:00
Paul Licameli 7e697d1d8f Replace many inclusions of Types.h with Identifier.h 2021-05-27 09:51:32 -04:00
Paul Licameli 91e4eeadb8 Remove GUIPrefs::InitLang...
... Expand it in AudacityApp where initializing i18n services.

Just call SetLang directly in CrashReport, because the argument was not null.

Also eliminate call to SetLang in Nyquist, where really only the system language
was needed.
2021-05-27 09:51:32 -04:00
James Crook 7605763fa0 Bug 2784 - Filter Curve EQ; Height increase.
Comment in closing of this bug requested an increase in height.
No reason not to, so height increased too.
2021-05-20 17:52:47 +01:00
James Crook 2b10309fb3 Bug 2784 - Enh: Filter Curve EQ does not remember window size
Per comment 1 in that Bugzilla bug report, this
change makes the default/initial/minimum size larger.
2021-05-19 13:16:42 +01:00
Paul Licameli f1de843246 Use Settings for default sample rate and format...
... The first is an example of a Setting with a computed default value.

Also making a new file to hold them, separate from the GUI that changes them
in QualityPrefs; fewer things depend on QualityPrefs
2021-05-17 08:46:08 -04:00
Paul Licameli bd6fb75886 moduleMain functions were never called but with nullptr; so simplify 2021-05-16 07:03:12 -04:00
Paul Licameli 64bbc31c54 Remove macro making extern declaration of RegisterBuiltinModule...
... Forcing other places that use RegisterBuiltinModule to be more explicit
about their link dependencies on ModuleManager, with a new #include directive.

Does this make scripts/graph.pl show a new dependency cycle?  Happily no.  But
now we know.
2021-05-16 07:03:12 -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 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 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 c5ebc396eb Audacity.h has shrunk to nothing, now remove it! 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 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
SteveDaulton 921f40255d Bug 1091 Spectral Edit effects may have unpredictable results 2021-04-25 14:39:57 +01:00
SteveDaulton 2eab4d7b11 Remove irrelevant comment
While it would be nice to have access to *track* properties, ;tool type
plug-ins do not iterate through tracks, so this is not possible.
2021-04-21 13:00:38 +01:00
SteveDaulton 99a2b4c48a Nyquist-Macros should add state to history 2021-04-21 12:05:27 +01:00
James Crook db5a988e7f Bug 2466 - Linux: Filter Curve EQ GUI far too wide 2021-04-20 15:32:55 +01:00
Leland Lucius c9afd39845 Bug 2723 - VST_PATH environment variable fails for non-standard locations 2021-03-28 14:02:21 -05:00
James Crook 3efd8e3ea0 Bug 2710 - Compressor with audio before T=0 crashes Audacity 2021-03-27 20:59:50 +00:00
Leland Lucius 0f830b44d3 Bug 2687 - Compressor with selection to end of track can cause corruption 2021-03-05 21:27:28 -06:00
Leland Lucius 15dcb343f3 Fix LV2 memory leaks 2021-02-26 00:53:18 -06:00
Leland Lucius 7cc1cf79ea Don't force preset directory 2021-02-16 17:28:51 -06:00
Leland Lucius 4339632e25 Bug 761 - Linux: VST presets correct extension no longer offered in file name/no longer added if omitted 2021-02-16 16:21:37 -06:00
Leland Lucius 0f810708bb Fix LV2 buffer size display in Settings 2021-02-06 13:07:52 -06:00
JohnColket a3d9f41fb4
Bug 2582 - Enh: Repeat last Process, Part 2 (#734) 2021-02-03 11:02:49 +00:00
Leland Lucius 392360a629 Bug 453 - Nyquist receives Unicode characters from Audacity producing platform-inconsistent behaviour 2021-02-02 03:01:00 -06:00
Paul Licameli e89546d941 Keep EXPERIMENTAL_EFFECTS_RACK compilable 2021-02-01 20:20:04 -05:00
Leland Lucius fcfca160c3 Remove unneeded include 2021-02-01 10:41:13 -06:00
Leland Lucius 5107c0f350 No longer need header replacement for sbsms.h 2021-02-01 10:35:52 -06:00
Paul Licameli 23f32a8319 Remove some unnecessary #include directives 2021-01-30 12:37:47 -05:00
Leland Lucius 7aa26482eb Bug 1806 - Extreme negative settings in Change Tempo cause an "apparent" hang/freeze 2021-01-30 04:56:53 -06:00
Leland Lucius 618106f1c3 Bug 619 - TwoPassSimpleMono converts to track bit format between passes, losing quality. 2021-01-30 01:16:32 -06:00
Leland Lucius 0576d8c945 Bug 1215 - Incorrect splits produced by Change Tempo with leading whitespace 2021-01-29 23:23:54 -06:00
Leland Lucius a7c1906bf5 A small change to accommodate new Nyquist version 2021-01-28 19:10:08 -06:00
luzpaz e050b0ecbb
Fix source typos (#732)
Coefficents->Coefficients
2021-01-28 12:35:23 +00:00
Leland Lucius f24d42d510 Update Audacity's Nyquist interface for r331 (r3.16+)
This includes converting some types to int64_t to be
compatible with Nyquist's improved 64-bit support.
2021-01-28 02:34:43 -06:00