Commit Graph

398 Commits

Author SHA1 Message Date
Max Maisel a94cda94ae Create empty EBUR128 class.
This class will contain all EBU-R128 related analysis code.
Add all new files to all build systems as well.
2019-11-22 19:42:33 +01:00
Max Maisel 6da48db127 Start work on new Loudness effect
This is based on my old loudness effect prototype which was included
in the Normalize effect.

Create all source files and add them to all build systems.
Currently, the effect only consists of a GUI mockup.
Create Octave+mod-script-pipe based dummy unit-test as well.
2019-11-22 19:42:32 +01:00
James Crook fe8739a362 Add modified mac build_dist script.
This is for convenience and does some of the manual steps.
2019-11-15 10:31:23 +00:00
Paul Licameli aac2b7d825 Revert "Register export plugins, as we did for import, breaking cycles..."
This reverts commit 317f532dcb.
2019-07-29 15:43:22 -04:00
Paul Licameli 317f532dcb Register export plugins, as we did for import, breaking cycles...
... and making several header files unnecessary
2019-07-29 15:41:11 -04:00
Paul Licameli d6317ae6af Merge LinkingHtmlWindow into HelpSystem...
... they cooperated closely in a cycle of two not worth breaking
2019-07-10 10:34:04 -04:00
Paul Licameli cbdf5f24fe New files to separate spectrum/waveform views and VRulers 2019-07-08 09:45:59 -04:00
Paul Licameli 24bd7cf571 New files for ScrubUI 2019-07-04 09:13:59 -04:00
Paul Licameli efa66f5350 New files for ProjectStatus 2019-07-02 21:01:34 -04:00
Paul Licameli cb2ea25afc Define drawing function of CellularPanel, which visits nodes 2019-06-26 23:39:42 -04:00
Paul Licameli fab648e475 New files SelectUtilities, TrackUtilities 2019-06-24 22:50:35 -04:00
Paul Licameli ab5a98003a Free EffectManager and EffectRack from the big s.c.c. ...
... though in a small cycle with each other, by moving RealtimeEffectManager to
new files, which remain in the big component.

Net loss of 1, the big component now has 27 files
2019-06-24 00:49:12 -04:00
Paul Licameli a6e2ca0aa8 Move some enums into new files WaveTrackViewConstants.* ...
... freeing TracksPrefs from the second largest s.c.c. which is now only 20
2019-06-22 21:46:32 -04:00
Paul Licameli 77eeba5463 Define utility AttachedVirtualFunction 2019-06-21 09:16:48 -04:00
Paul Licameli 674b66128d New files for PlayableTrackControls 2019-06-19 18:34:48 -04:00
Paul Licameli 015e3abfe5 New files for TrackInfo 2019-06-19 12:59:02 -04:00
Paul Licameli a99b746520 Move class ZoomInfo to separate files 2019-06-19 11:35:45 -04:00
Paul Licameli e30ffc340a New files CommonTrackControls.cpp, CommonTrackView.cpp 2019-06-18 16:01:06 -04:00
Paul Licameli d7753f7acd Rename old .cpp files, add new .h files 2019-06-18 16:01:05 -04:00
Paul Licameli 45436db166 New files for CommonCommandFlags 2019-06-16 01:21:05 -04:00
Paul Licameli 758e9813f1 Move MeterPanelBase to new files...
... which frees AudioIOBase, QualityPrefs, and ProjectAudioIO from cycles
2019-06-10 20:48:39 -04:00
Paul Licameli 42a4f55ffe Prepare to split AudioIOBase from AudioIO...
... New files, but (almost) empty; don't use the global variable gAudioIO,
but use one of two accessor function names (which are the same function for
now).

AudioIOBase will have fewer dependencies than AudioIO -- in particular, no
dependency on tracks.

It won't include StartStream.  It will contain functions to query the
present state of streams, and device capabilities.
2019-06-10 20:48:38 -04:00
Paul Licameli 7ed99c6e8f Split EnvelopeEditor.cpp from Envelope.cpp...
... Envelope drops down out of the big strongly connected component, the new
piece stays behind
2019-06-10 20:48:38 -04:00
Paul Licameli e2cf1d93c2 Import.cpp does not depend on subclasses of ImportPlugin...
... freeing 15 files from the big strongly connected component:

ImportFFmpeg & ODDecodeFFMpegTask (still in a cycle of two)
ImportFLAC
ImportGStreamer
ImportLOF
ImportMIDI
ImportMP3
ImportOGG
ImportPCM
ImportQT
ProjectFileManager
ProjectFSCK
ProjectManager
ProjectSelectionManager
ODDecodeFlacTask

And eight header files in src/import are deleted.

This breaks a lot of cycles because Import, which is still in the big component,
no longer includes ImportLOF, which recursively uses ProjectManager. A
registration system for the subclasses of ImportFileHandle allows that
recursion without the cyclic compilation dependencies.
2019-06-09 12:10:52 -04:00
Paul Licameli 27eeb1035c New files for ProjectFileManager 2019-06-09 12:10:51 -04:00
Paul Licameli 997bf9781d New files for ProjectSelectionManager 2019-06-09 12:10:49 -04:00
Paul Licameli 0c6cda50c3 Split AutoRecoveryDialog.cpp from AutoRecovery.cpp...
... leaving AutoRecovery as a lower-level file, to be used by ProjectHistory
for auto-save, and not including ProjectManager.

The new file floats to a high level of the graph, but AutoRecovery.cpp
remains in the big strongly connected component.
2019-06-09 12:10:48 -04:00
Paul Licameli f03684db4f New class ProjectHistory split from ProjectManager for undo, etc...
... And yet fewer inclusions of Projectmanager.h, though it's still not yet
free of cycles
2019-06-09 12:10:48 -04:00
Paul Licameli d979a8959b New files for ProjectAudioManager...
... This eliminates some inclusions of ProjectManager, helping to free it from
cycles into a higher level
2019-06-09 12:10:47 -04:00
Paul Licameli 4f940c855d New files for ProjectWindow 2019-06-03 01:43:26 -04:00
Paul Licameli 3fc961f74a New files for ProjectFileIO 2019-06-03 01:24:01 -04:00
Paul Licameli fee5582826 New files for ProjectManager 2019-06-03 01:21:12 -04:00
Paul Licameli e5cf2165d1 New files for ProjectAudioIO 2019-06-03 01:18:08 -04:00
Paul Licameli 05efeeb5bd New files for ProjectSettings 2019-06-03 01:13:13 -04:00
Paul Licameli af039f19ff Generalize means for decoupled code to add data to core structures...
... Generalizing what was first done at 280e8d9 for certain menu command
handlers.

Allow core data structures to host data attached by other code, on which it
need have no compilation or link dependencies.
2019-05-21 10:08:56 -04:00
Paul Licameli 390af96796 Dispatch read of top-level project XML tags with a table of functions...
... which makes Project.cpp a bit less dependent on some details of other
classes

This puts Tags.cpp back into the big strongly connected component of the
dependency graph.  That will be remedied later when Project.cpp becomes a
low-level file
2019-05-20 21:38:07 -04:00
Paul Licameli f86403378b Move AudacityMessageBox to its own files...
... breaking cycles among low-level files introduced by 273ba9f
2019-05-20 14:48:36 -04:00
Paul Licameli db8c4c5e5a Global keyboard capture handling into new files, better comments...
... and break its compile dependency on CommandManager.h by letting it install
callbacks.

This also removes Objective-C mixed code from CommmandManager.

This also eliminates four inclusions of Project.h!

Capture handler state is also global, not per project, though the
CommandManager's callbacks still do depend on the active project.
2019-05-18 15:14:18 -04:00
Paul Licameli e5c7e5a21f Three new files in the build, still empty 2019-05-18 14:57:24 -04:00
Paul Licameli b04387a21d Move AudacityApp::GenerateCrashReport to its own files 2019-05-17 16:29:31 -04:00
Paul Licameli e845bd9544 Move AudacityApp::MacActivateApp out of WindowMenus.cpp 2019-05-17 16:29:04 -04:00
Paul Licameli a047fa6e7a Missing alias file tracking out of AudacityApp, into new files...
... which reduces the need for including AudacityApp.h
2019-05-17 16:28:50 -04:00
Paul Licameli 338d7cd164 A class encapsulating the global clipboard 2019-05-17 06:47:53 -04:00
Paul Licameli 28e0bb25b2 Corrections in the XCode project 2019-04-22 10:47:41 -04:00
James Crook ae431bc5bd Build LAME on macOS 2019-04-06 12:05:43 +01:00
Steve Daulton 6e6148604d Nyquist plug-in installer added
Ran "autoreconf --force --no-recursive" for Linux build.

Add nyquist-plug-in-installer.ny to Windows build

Add Nyquist Plug-in Installer to mac build

Fix translation strings in plug-in installer
2019-03-21 14:30:26 +00:00
Paul Licameli 3dba70120c CommandManager, MenuManager don't use Lyrics.h, MixerBoard.h ...
... instead define new base classes in src/commands that those other
windows can inherit.  The classes have nothing but a virtual destructor.  This
lets CommandManager use dynamic_cast to detect the special windows.

See commits cbfde23 and 68e4bf6 which added the #include directives
2019-03-16 13:10:59 -04:00
James Crook 807a763c90 Increase space in OSX bundles for dylib filenames
This is needed to allow path names in the bundle to be rewritten by install_name_tool so that they are relative to the bundle rather than absolute paths.  The problem previously was that the new relative path names could be too long.
2019-02-04 11:43:17 +00:00
James Crook f5443c8859 Update mac build instructions. 2018-11-28 16:31:32 +00:00
Paul Licameli 7c78a91778 Fix one of the two 64 bit link errors 2018-11-18 13:17:11 -05:00
Paul Licameli 897f8bf0ed New configs now really 64 bit; they compile, almost link...
... The null, script-pipe, and Nyquist workbench modules all build fully.

Just two missing symbols building Audacity, I don't yet know why:

ld: warning: directory not found for option '-L/Users/paullicameli/GitHub/audacity/mac/build/Release'
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime, file was built for i386 which is not the architecture being linked (x86_64): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_ModalDialogDelegate", referenced from:
      objc-class-ref in FileDialogPrivate.o
  "_objc_readClassPair", referenced from:
      __ARCLite__load() in libarclite_macosx.a(arclite.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2018-11-18 13:17:10 -05:00
Paul Licameli bd31c0de6b Must change compiler options to build sbsms for 64 bits 2018-11-18 13:17:10 -05:00
Paul Licameli 541f5ea99f Must add command-line compiler option to build libmad for 64 bits 2018-11-18 13:17:10 -05:00
Paul Licameli 781da7aba4 Differences in some generated config headers for x86_64 lib-src build 2018-11-18 13:17:10 -05:00
Paul Licameli 2f8bdcd289 Add mac/config/x86_64 duplicating the i386 subtree 2018-11-18 13:17:09 -05:00
Paul Licameli a84bcfaf5b New configurations and schemes for XCode...
... complete and buildable, but still 32 bit builds.  To be modified.
2018-11-18 13:10:01 -05:00
Paul Licameli 407b7fab4a build_wxwidgets now loops over two architectures; change install path...
... to include architecture, so the 64 bit build doesn't destroy the 32, thus
the results are found in:

/usr/local/i386/lib
/usr/local/x86_64/lib

whereas before all was in /usr/local/lib.

Change the XCode project too, to look for includes and libraries in the new
places.
2018-11-18 13:09:03 -05:00
Paul Licameli fe19c848be Abstract out the architecture in build_wxwidgets script 2018-11-18 12:16:35 -05:00
Paul Licameli 93bf8d1754 Remove mac/scripts/build_wxwidgets2 2018-11-18 12:16:23 -05:00
Paul Licameli 5578a0490b MacOS build treats warnings as errors 2018-11-15 11:23:20 -05:00
Paul Licameli d40d56a0f9 MacOS build: don't warn about deprecated functions...
... This quiets warnings from:

lib-src/FileDialog/mac/FileDialogPrivate.mm
lib-src/portaudio-v19/src/hostapi/coreaudio/pa_mac_core.c
lib-src/portaudio-v19/src/hostapi/coreaudio/pa_mac_core_utilities.c
lib-src/portmixer/src/px_mac_coreaudio.c

It's not good to ignore these deprecations forever, but this reduces the noise
from a complete rebuild, making other warnings more conspicious by their
fewness.
2018-11-15 11:23:20 -05:00
Steve Daulton 4ce666e09b Add aud-do-support.lsp to mac build 2018-11-09 20:23:50 +00:00
Paul Licameli fb15558a07 Update XCode project for renamed header file 2018-11-02 18:44:17 -04:00
Paul Licameli 39fc20c5ee TrackPanelCellIterator is no longer needed 2018-11-01 18:25:02 -04:00
Paul Licameli 303553ae4e Take class AdornedRulerPanel out of src/widgets...
... It's not a utility widget like RulerPanel.  It has a lot of application
specific logic in it.
2018-10-24 15:04:41 -04:00
Paul Licameli c7521b211d Window Menu for Mac 2018-10-24 12:16:44 -04:00
Paul Licameli 2792faa114 Edit and Label Menus 2018-10-24 12:14:05 -04:00
Paul Licameli 3308054170 14 new, empty .cpp files in src/menus 2018-10-24 11:04:06 -04:00
Steve Daulton 5d34d022a5 Add rms.ny to Audacity bundle
Tidy translation code in init.lsp
Include rms.ny in Makefile.am
Add rms.ny to Linux package
Update Makefiles with: autoreconf --force --no-recursive
Add rms.ny to mac build
Add rms.ny to Windows build
2018-10-08 18:55:46 +01:00
James Crook edb8284ec5 Add instruction to use our fixes branch into mac/build.txt 2018-09-18 16:14:52 +01:00
James Crook 2b5a8682a1 File rename. 2018-09-15 22:36:03 +01:00
James Crook 83f1537e33 Update build instructions for 2.3.0 2018-09-15 22:22:14 +01:00
Paul Licameli e77fc068b3 Add missing header files to XCode project 2018-09-14 14:14:24 -04:00
Paul Licameli f6609e5ffb Move class CellularPanel into its own files 2018-08-05 14:02:55 -04:00
Paul-Licameli af62506175 Update pointer to our wxWidgets custom branch in build texts 2018-06-19 22:50:34 -04:00
Paul Licameli 58fa401faf Don't disable accessibility in Mac build of wxWidgets for Audacity 2018-06-19 09:26:00 -04:00
Steve Daulton ae908a9bc4 Update Mac Build.txt (fixes bug 1878)
wxWidgets must be cloned with --recurse-submodules.
2018-05-24 13:20:53 +01:00
Steve Daulton 6d2bd8a2f7
Added: where to get wxWidgets and Xcode 2018-05-01 10:48:22 +01:00
James Crook 5e8ba1085b
Fix path to script. (Thanks Cliff) 2018-04-16 18:45:32 +01:00
James Crook cef8976e8f Update mac build instructions.
- We're now on wx 3.1.1 and OSX 10.7+
2018-04-16 10:08:57 +01:00
Paul Licameli fc473ba500 Mac: script to build wx 3.1.1 & change xcodeproj to use 10.7 minimum 2018-04-14 13:46:56 -04:00
James Crook e3a2167b7b Mac: Build wx3.1.1 libs for Audacity.
Sets the i386 option and installs where XCode will fetch it from.
2018-04-13 10:11:30 +01:00
James Crook c0e1c82be9 Add missing files to Mac build.
Also moved the constructor into the .cpp file, so that wxWindow is a fully defined class.
2018-04-04 14:14:59 +01:00
Steve Daulton 2a8cec8bbb Fix Mac build 2018-03-21 02:03:24 +00:00
James Crook e3ef968d57 Add DragCommand. Default Y/N on optional fields. Open/Save project items.
- More Y/N in Optional, making it easier to omit parameters.
- AT removed from Envelope, since T already gives it.
2018-02-24 14:20:29 -05:00
James Crook edf90d6e2c Add envelope commands
- Added SetEnvelope (which can also delete/clear an envelope.)
- Added GetInfo: Type=Envelope
2018-02-24 14:20:27 -05:00
James Crook 1d9477a455 SetClip, SetLabel, SetProject added
- SetTrack also updated with more options.
2018-02-24 14:20:24 -05:00
James Crook 2f6fc0a1e5 Long message target
This allows interactive display of the results of new commands that generate
lots of text.
2018-02-24 14:20:23 -05:00
James Crook 1c988b4e3a Automation: AudacityCommand
This is a squash of 50 commits.

This merges the capabilities of BatchCommands and Effects using a new
AudacityCommand class.  AudacityCommand provides one function to specify the
parameters, and then we leverage that one function in automation, whether by chains,
mod-script-pipe or (future) Nyquist.

- Now have AudacityCommand which is using the same mechanism as Effect
- Has configurable parameters
- Has data-entry GUI (built using shuttle GUI)
- Registers with PluginManager.
- Menu commands now provided in chains, and to python batch.
   - Tested with Zoom Toggle.

- ShuttleParams now can set, get, set defaults, validate and specify
the parameters.
- Bugfix: Don't overwrite values with defaults first time out.
- Add DefineParams function for all built-in effects.
- Extend CommandContext to carry output channels for results.

We abuse EffectsManager.  It handles both Effects and
AudacityCommands now.  In time an Effect should become a special case of
AudacityCommand and we'll split and rename the EffectManager class.

- Don't use 'default' as a parameter name.
- Massive renaming for CommandDefinitionInterface
- EffectIdentInterface becomes EffectDefinitionInterface
- EffectAutomationParameters becomes CommandAutomationParameters
- PluginType is now a bit field.

This way we can search for related types at the same time.

- Most old batch commands made into AudacityCommands.
The ones that weren't are for a reason.  They are used by mod-script-pipe
to carry commands and responses across from a non-GUI thread to the GUI
thread.

- Major tidy up of ScreenshotCommand
- Reworking of SelectCommand
- GetPreferenceCommand and SetPreferenceCommand
- GetTrackInfo and SetTrackInfo
- GetInfoCommand
- Help, Open, Save, Import and Export commands.
- Removed obsolete commands ExecMenu, GetProjectInfo and SetProjectInfo
  which are now better handled by other commands.

- JSONify "GetInfo: Commands" output, i.e. commas in the right places.

- General work on better Doxygen.
    - Lyrics -> LyricsPanel
    - Meter -> MeterPanel
- Updated Linux makefile.
- Scripting commands added into Extra menu.
- Distinct names for previously duplicated find-clipping parameters.
- Fixed longstanding error with erroneous status field number which
  previously caused an ASSERT in debug.
- Sensible formatting of numbers in Chains, 0.1 not 0.1000000000137
2018-02-24 14:20:22 -05:00
Paul Licameli c1babb3bb3 Revert "Make FFmpeg header files browseable in Xcode project"
This reverts commit 6f66ee5651.
2018-01-26 19:18:03 -05:00
Paul Licameli 6f66ee5651 Make FFmpeg header files browseable in Xcode project 2018-01-26 19:08:04 -05:00
Pokechu22 60ea8a662b Update mac icons 2018-01-25 16:30:16 -05:00
Pokechu22 b6255d4fa1 Update DMG background 2018-01-24 14:56:08 -05:00
Paul Licameli e37d701bc0 WXINTL_NO_GETTEXT_MACRO defined in compiler options...
... so even if you neglect to include Audacity.h, it applies
2018-01-06 20:56:51 -05:00
James Crook 27d2b7c51b Add AutomationCommands class
- AutomationCommands replaces GetAllMenuCommands, and can provide
information about menus, buttons and toolbars to a script.
- BatchCommands can now return textual results to a script.
- There's a new GUID for mod-script-pipe and it is included in the .sln.
2018-01-06 19:27:45 +00:00
Paul Licameli fa7f1a455b Correct self-names for the two Chinese locales 2018-01-03 19:33:04 -05:00
Paul Licameli e051de0b68 Abandon the drag-and-drop of plug ins for now. 2018-01-03 18:43:06 -05:00
Paul Licameli b8df8e753b macOs magic to allow drag and drop of .ny file onto Audacity program icon 2018-01-03 03:26:34 -05:00
Paul Licameli a1530c36a8 Rewrite "Interface preferences displays self-names of languages" ...
See original attempt at commit 7ec5fd79df

This eliminates the need for a resource file at run-time.

locale/LanguageNames.txt is intended as a "source file" that is infrequently
changed as the set of supported languages changes.

The intermediate step, of appropriately copying that file into the C++ source
code in src/Languages.cpp, was done by hand.

In XCode, I set locale/LanguagesNames.txt and src/Languages.cpp to be
interpreted as Western encoding, and then the copy-paste was easy in the
editor.

The resulting C++ source code file now has string literals that are not 7-bit
ASCII.
2018-01-02 17:08:06 -05:00
Paul Licameli 7ec5fd79df Interface preferences displays self-names of languages 2017-12-31 21:58:36 -05:00