1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

648 Commits

Author SHA1 Message Date
Paul Licameli
6b2a219e26 Changes to make xlisp.h usable in C++ code...
1) #include guard
2) "C" linkage for all function declarations
3) some uses of const
2018-03-01 21:48:41 -05:00
Paul Licameli
5aa70545d5 Use casts with function pointers to quiet compilation warnings in Nyquist 2018-03-01 21:43:32 -05:00
Paul Licameli
a52f7f5313 Fix build of Nyquist workbench 2018-02-24 16:57:06 -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
e6d069787b Fix mistake in commit a1dc830 and add a comment 2018-02-22 01:10:10 -05:00
Paul Licameli
a1dc8305f0 A function to extend XLisp's table of function bindings dynamically 2018-02-21 17:32:08 -05:00
Paul Licameli
cf66f88050 Fix build of mod-nyq-bench 2018-01-29 23:01:34 -05:00
Paul Licameli
f5737be02c Ran autoreconf --force --no-recursive 2018-01-24 22:34:35 -05:00
Paul Licameli
b3b4ace739 CHANGE LIB-SRC: make FLAC export error-check the closing of files 2018-01-22 16:48:19 -05:00
James Crook
549fa48a24 Fix order in which pipes are opened on linux. 2018-01-14 11:53:38 +00: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
Paul Licameli
df1d9a08fe Bug1808 (crash in Sliding Time Scale/Pitch Shift) PATCHED IN LIB-SRC...
... Error was in the libaries' memory management, causing an out-of-bounds
read of a buffer obtained with calloc.
2018-01-06 15:41:07 -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
James Crook
d2fe7b1757 Clean up most remaining MSVC warnings. 2018-01-06 13:03:48 +00:00
Paul Licameli
ccb4bbac33 Translate "Message" as default title of message box...
... This required a sweeping change of all calls to wxMessageBox!  But it seems
safe to me, despite the great number of touched files.
2018-01-01 17:50:02 -05:00
James Crook
94b1175684 mod-script-pipe: Recreate MS project and .sln files.
This was to work around a bug in MSVC that reports a
bogus warning MSB8012, caused by using an upgraded project.

I also in the process fixed the release build, which was building as debug earlier.
2017-12-31 15:44:47 +00:00
James Crook
37ec3b52c7 mod-script-pipe: Use release libs in release build. 2017-12-30 08:20:27 +00:00
Olivier Humbert
0d89bc3f15 Fix some typos in msgids, thanks to Olivier Humbert...
... Fix the source code; fix up msgids in audacity.pot and *.po
2017-11-27 23:12:37 -05:00
Paul Licameli
41f191453f Make patch describing change in portaudio source at 38fd97b 2017-10-25 14:13:00 -04:00
Pokechu22
6d47a79d3e Bug 1689: Fix MIDI devices not being found on linux
PortMidi requires PMALSA to be defined to compile with ALSA support.  Without it, it simply does not find any devices.  (There is also PMNULL, but the files controlled by that define do not actually exist)
2017-07-20 09:41:15 -04:00
Paul Licameli
38fd97b8e2 Fix "C" linkage of PaUtil_GetTime (TOUCHES lib-src !) 2017-07-15 13:32:42 -04:00
Pokechu22
f50b301694 Regenerate configure scripts and Makefile.in's 2017-07-04 07:50:16 -04:00
Pokechu22
0c00435f08 Attempt to add the rest of the makefile for portmidi
Also, fix a broken(?) include in px_linux_alsa.c.  I don't know if it was actually broken, but it seems like that was wrong.
2017-07-04 07:50:15 -04:00
Pokechu22
1610da4bb3 Re-add automake files for portmidi
These were created by rbdannenberg, in commit
932ca88255a322bff833e3eb4e3931a971aa97d4, but were accidently deleted
later in commit bb63fa0d07dad9a9f02b75eda455576e6e8b4da4 (which updated
portmidi).  I can't say whether they work or not, and even when they were
introduced it was stated that they may be wrong.  But it's better than not
having any automake files at all, and will at least provide a base for
them.

I didn't add some of the sourcefile changes from the first commit (some
were already added to portmidi, and others weren't).  Some of them may be
needed to get building to work (or, we could update portmidi, if there are
any changes upstream).  I also didn't add any of the libscorealign changes
other than one, since libscorealign already had makefiles (other than the
uninstalled one).

These configure scripts may be really old; regenerating them is probably a
good idea.
2017-07-04 07:50:15 -04:00
Paul Licameli
f6d92ece82 Revert "Update from expat 2.1.0 to version 2.2.1..."
This reverts commit 2b146bf5437b94f2b5493afa8fadfe821adf292b, reversing
changes made to 138c188fb463b475ae5c243e2bc798b9450e6237.
2017-06-29 11:27:12 -04:00
Paul Licameli
b8007778f0 Other new files from expat github, probably not needed 2017-06-28 21:16:42 -04:00
Paul Licameli
941ad55140 Update expat sources 2017-06-28 21:16:42 -04:00
Steve Daulton
92335ce463 Enable Nyquist audio device selection 2017-06-22 10:24:59 +01:00
Steve Daulton
333c0e3440 Fix for bug 1653 (Nyquist *Table* size limit)
as suggested by RBD in comment #1
2017-06-15 21:46:11 +01:00
Steve Daulton
516570074b Add preference option for Stem Plot
Tracks 'behaviors' preferences split to sub-page to avoid over-long
page for Tracks preferences.
2017-04-27 15:16:05 +01:00
James Crook
439edae203 Update source files.
Used autoreconf --no-recursive --install to do this.
2017-03-18 20:13:39 +00:00
Paul Licameli
5036583549 Fewer inclusions of AudacityApp.h 2017-03-17 17:52:24 -04:00
Darrell Walisser
0a0a9f615c Bug 1528 - Linux: Mod-script-pipe can't be built 2017-02-24 22:54:57 +00:00
James Crook
dd6fb7b91d Updated README.txts 2016-12-31 15:01:43 +00:00
Steve Daulton
6f3aad2fe0 Update for Sample Data Import
Makefile updated for Linux build
2016-11-23 17:49:53 +00:00
yam
967275528b Get Nyquist Workbench building again 2016-10-02 19:20:31 -05:00
Leland Lucius
f4d38476a6 Actually commit the mod-null changes this time! 2016-10-01 20:23:09 -05:00
Leland Lucius
01eb4745a6 Get mod-null building again 2016-10-01 16:47:11 -05:00
Leland Lucius
2ab0c13101 Fix build of Nyquist Workbench 2016-10-01 14:05:53 -05:00
Richard Ash
ad72c112a4 Update references to sourceforge.net
Replace references to audacity.sourceforge.net with the new
audacity web site, and also bug report emails in configure scripts
and readme files.
2016-09-21 10:03:25 +01:00
James Crook
18eb2bbc7a Bug 193 - Audacity can't record at > 16-bit under MME or Windows DirectSound
Fix by Uwe and Carsten of DirectSound issue (only).  We can't interrogate for formats, so we use userData to tell PortAudio what the format should be.  I have a 16 bit built in sound device and that continues to function correctly at 16 bit with 24 bit requested.  Unable to test on a 24 bit device.
2016-07-05 11:56:04 +01:00
Paul Licameli
9036c00152 Bug1300, improved: don't truncate the pasted string 2016-06-29 13:42:37 -04:00
Paul Licameli
bbd369df1b Bug1300: make Ctrl+V work in text field of Save dialog, but...
It's a bit crude.  It always pastes the entire text field, ignoring the
insertion cursor, and ignoring which control really has the focus.

The file dialog, which can call up the Finder, is implemented in the AppKit
so it's not wholly under our control.  But I could bolt on an event filter,
after the fashion of CommandManager, to intercept key events.

Perhaps later versions of the toolkit than 10.6 will have a better save dialog
in the AppKit, making this change unnecessary.
2016-06-29 12:13:01 -04:00
James Crook
016919a53b Bug1223: (correction). Fix new potential crash in following pointer.
With recent changes to the Nyquist code for freeing blocks, the pointer 'next' could be uninitialised when 'list' points to the zero chain.  So Audacity would follow a rogue pointer.  We'd get away with it if the uninitialised value happened to be zero.
2016-06-26 08:35:19 +01:00
Paul Licameli
ba1b63a435 Bug1223 again: redo the fix exactly as Roger Dannenberg wants it 2016-06-22 15:50:20 -04:00
Paul Licameli
8ad9fd257c Bug1223: Avoid stack overflow crash generating long click track 2016-06-21 17:52:30 -04:00
Benjamin Drung
787f2afd10 Introduce end-of-line normalization
Ensures that all files that Git considers to be text will have
normalized (LF) line endings in the repository. When core.eol is set to
native (which is the default), Git will convert the line endings of
normalized files in your working directory back to your platform's
native line ending.

See also https://git-scm.com/docs/gitattributes
2016-05-17 01:05:05 +02:00
Benjamin Drung
8d360fe5f3 Remove unwanted files
There are some files in the repository that match rules in .gitignore
and shouldn't have been committed to the repository. Thus remove them.
2016-05-17 01:05:05 +02:00
Benjamin Drung
c6acf6ff64 libflac: Remove generated documentation
Remove all files that were built by libflac by running

    ./configure && make distclean
2016-05-16 16:47:45 +02:00
Benjamin Drung
43d5979414 Remove Windows executables
This repository should only contain source code and all executables
should be build from source. Thus remove the Windows executables
that were imported from the portmidi library.
2016-05-16 15:49:03 +02:00