1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 23:59:41 +02:00

10740 Commits

Author SHA1 Message Date
Paul Licameli
bbaceba347 Register export plugins, breaking cycles...
... as we did last relase for import; making several header files unnecessary.

This breaks up a strongly connected component of 9, which was the largest
remaining.  Now the largest remaining is 5.
2019-11-27 13:33:28 -05:00
Paul Licameli
5459a7bf27 EffectsPrefs discovers all registered effect families...
... instead of keeping an exhaustive list of them with hardcoded preference
paths.  And some duplication of string literals for those paths is eliminated.

One small piece of improvements of preference path handling.
2019-11-26 12:02:03 -05:00
Paul Licameli
af3b54ba2a EffectsPrefs queries PluginManager for checkbox settings paths 2019-11-26 11:55:58 -05:00
Paul Licameli
82e3ec6818 Don't duplicate registry path calculation in PluginManager.cpp 2019-11-26 11:02:35 -05:00
Paul Licameli
15983499c8 New virtual function in ModuleInterface 2019-11-26 11:02:35 -05:00
Paul Licameli
9333b1ff0f remove unused 2019-11-26 11:02:35 -05:00
David Bailes
14b53e6736 Bug 2251 - Windows: NVDA sometimes reads the name of the track twice
Problem:
Currently calling Track::EnsureVisible() also sets the track as focus.
In Audacity 2.3.3 the timing of the code to set the focus was changed. Rather than a direct call, an event is queued, and then the focus is set. This has changed the timing of the focus event which is sent with respect to other focus and name change events. In particular in the case of toggling the selectness of the focused track, this moved the focus event to be after the name change event.
These changes only had an effect on NVDA - Jaws and Narrator were unaffected.

The introduction of this bug has highlighted an existing problem.
1. There are a small number of existing cases where a track needs to be visible, but where it is already the focus, and so setting the focus is unnecessary. For example, pressing Enter to toggle whether a track is selected.
2. Some of the Audacity code which calls EnsureVisible() is written with the assumption that EnsureVisible() doesn't set the focus, and so there are unnecessary focus events. Whilst other code which calls EnsureVisible() assumes that it also sets the focus. Confusion.

The Fix:
Remove the setting of focus from within Track::EnsureVisible(), and so remove the unnecessary focus events.
Calls to set the focus were added before calls to EnsureVisible where the code was relying on EnsureVisible to set the focus. In TrackPanel::ProcessUIHandleResult, and TrackPanel::OnMouseEvent, I wasn't sure if the focus needed to be set, so called it anyway to ensure that the behaviour did not change.

So I would like to remove the setting of focus from within Track::EnsureVisible(), and add explicit calls to set the focus where necessary.
I think this would make the code clearer, remove unnecessary calls to set the focus, and make it easier to keep NVDA happy.
2019-11-26 14:43:25 +00:00
Paul Licameli
c707edad7a Don't lose split view after undo & redo, or an effect 2019-11-26 04:49:15 -05:00
James Crook
5dca14db78 Shorten pull request template.
It gets included in some pull requests, so keep it short, and refer to the wiki.
The wiki page needs to be less off putting too, but that's for another day.
2019-11-24 21:54:18 +00:00
Geoffrey McRae
b3ade99a58 Fix loading of LV2 effects that have Event ports (Calf Plugins)
The Calf plugin suite exposes Event ports which is currently not supported or defined in `liblilv`, so instead of flat rejecting the filter, test the port name for `Events` and allow them to load.
2019-11-24 21:33:25 +00:00
Philipp Claßen
af79017f3a Prevent heap-use-after-free crash 2019-11-24 21:09:39 +00:00
Lars Wendler
b280253e60 build: Fix bad include path
tracks/labeltrack/ui/LabelTextHandle.cpp:25:10: fatal error: ../../../images/Cursors.h: No such file or directory
     25 | #include "../../../images/Cursors.h"
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
2019-11-24 21:04:10 +00:00
Paul Licameli
92bdec7a46 Split wave and spectrogram views...
To get a split view: move the mouse near the top or bottom of a wave track view
until the cursor changes to "north-south", then drag and release.

When a separation of views exists, the separation line can be dragged again.

You can drag until one of the sub-views shrinks to nothing.  There is a certain
snapping (now 5 pixels) to make this easier and prevent very small views shorter
than that.

Notes:

- ESC key before mouse release cancels the drag, as expected.
- Either wave or spectrum view can be on top, depending on how you drag.
- Please note, and test, that the vertical ruler also divides in two portions,
and that all mouse drag actions (including spectral selection) in the track
view or the ruler are available, and only those proper for the sub-view.
- If you have a stereo track, then the wave and spectrum views keep the same
height proportions in the two channels.
- If you want to drag the channel separator instead, unfortunately there is no
difference yet between the preview cursors.  North-south seems the most sensible
cursor for both of these drags, among pre-defined cursors.
- The drop-down menu of the track control panel may now have two checkmarks, for
spectrum and for either Waveform or Waveform dB.  Selecting any of those items
causes that view type to become the sole view.
- In my opinion, the behavior above is not satisfactory.  I think the more
consistent user interface would have only Waveform and Spectrum items as a
non-exclusive radio button choice in the menu, while the choice between linear
and dB waveform view should be part of the right-mouse popup menu in the
vertical ruler, analogous to the choice among scales for spectrum view.
- The 'VIEW property of *TRACK* in Nyquist is now a list rather than an atom
when there is a split view.  None of the existing .ny plug-ins that ship with
Audacity need to be changed, because they only ever test whether the property
is nil, indicating that an effect preview is being computed.
2019-11-23 17:28:48 -05:00
Paul Licameli
54e0df5660 Implement a dragging handle to adjust wave track sub-view heights 2019-11-23 16:44:42 -05:00
Paul Licameli
d26b55ee3c WaveTrackSubView has a back-pointer to the WaveTrackView 2019-11-23 15:27:04 -05:00
Paul Licameli
e3d9fd95ab If track has multiple views, pass a list in 'VIEW property to Nyquist...
... this makes no difference to any of the .ny plug-ins now in the project,
which only ever test whether the view type is NIL, signifying preview
2019-11-23 15:24:16 -05:00
Paul Licameli
af9959dc98 Rewrite WaveTrackView::GetSubViews to cache last computed heights 2019-11-23 15:02:09 -05:00
Paul Licameli
125b8ad0da Wave track context menu has non-exclusive check items for display type 2019-11-23 14:57:29 -05:00
Paul Licameli
f694d75993 Define ClientData::FindIf 2019-11-23 14:52:47 -05:00
James Crook
846938e871 Set BUILD_LEVEL back to 0 and Version to 2.4.0, ready for onward development. 2019-11-23 09:30:06 +00:00
James Crook
008d8d8c8c Set BUILD_LEVEL 2, ready for release. Audacity-2.3.3 2019-11-15 11:14:55 +00: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
eb2161d3aa Fix (again) TAB key navigation to graphic EQ sliders on Mac...
... original fix was at c8d95e1

regression was at 3e98a10
2019-11-14 23:28:15 +00:00
James Crook
d3f1893e9f Add forum and developer links to README.md 2019-11-13 22:21:47 +00:00
Steve Daulton
199d334614 Create README.md 2019-11-13 22:11:35 +00:00
David Bailes
185d555fc6 Bug2239: Windows, accessibility problem when TrackPanel regains focus
Problem:
When the TrackPanel regains focus, screen readers do not read the track name.
Introduced by the commit: acfd2b70

Fix:
Change TrackPanel::SetFocusedCell() so that it actually sets the focus, rather than just getting it :)

Note: this also fixes bug 2238
2019-11-13 16:49:02 +00:00
SteveDaulton
3c5906193b Fix bug 2233, First effect group incorrectly named 2019-11-12 19:46:55 +00:00
SteveDaulton
cc161a0ea4 Bug 2236, Vocal Reduction & Isolation
Removed duplicate Action, and correct fft-offset
for IsolateCenterInvert
2019-11-12 18:50:09 +00:00
James Crook
1c44a1e061 Include libFlac in tarball. 2019-11-08 20:40:18 +00:00
James Crook
eb00470042 Bug 2231 - Graphic Eq may create wrong effect 2019-11-08 20:12:13 +00:00
James Crook
b3539ed2b8 Update CHANGELOG and README 2019-10-26 12:37:17 +01:00
Paul Licameli
e96c213f4b Fix missing Spanish language choice on Linux...
... Don't modify a hash table (with operator []) while iterating it!
2019-10-24 15:31:24 -04:00
Paul Licameli
b83ebc17a1 Revert addition of extraneous files under scripts/ 2019-10-24 15:17:53 -04:00
SteveDaulton
e9c8438d2d Fix for bug 2230 - Audacity crashes on selecting Resample
See https://bugzilla.audacityteam.org/show_bug.cgi?id=2230
2019-10-24 13:27:29 +01:00
Paul Licameli
cfbffe6d54 Bug 2228: crash closing, only Linux, gcc, opt, wxWidgets 3.0...
... Not the most satisfactory fix, but in fact no dangling pointers will
happen with the code we have now, because the relevant windows are all destroyed
only at the end of AudacityProject's lifetime, including the non-modal windows
(macros, history, lyrics, mixer board, plot spectrum, and contrast) which
are hidden and shown again, not destroyed and recreated, when dismissed and
reopened.

To do:  figure out how to make wxWeakRef work on that combination without
crashing.
2019-10-17 17:07:37 -04:00
SteveDaulton
b2e7350587 Fix bug 2192 - Linux slow effects
Sets the default optimization level for release builds to -O2, though
allowing this to be overridden with CFLAGS / CXXFLAGS.
When the --enable-debug option is selected, optimizations are overridden
by '-O0 -g'.
2019-10-11 10:54:12 +01:00
ajkenny122
f5a6a02da0 Update audacity.desktop.in
Korean translation has been added.
(ko)
2019-10-07 10:39:48 +01:00
David Bailes
cff0011ee4 Bug 2225 - No error message when trying to delete with no selection
The problem only applies to the delete on the edit menu (ctrl+k), pressing delete or backspace work.

Fix: add a couple of missing flags.
2019-10-05 10:17:58 +01:00
Mikhail Novosyolov
a1ecfd10d2 Fix Ru translation of 'signed' and 'float'
Suggested to fix 'signed' at https://bugzilla.altlinux.org/show_bug.cgi?id=37238
See e.g. https://www.quora.com/What-do-the-16-bit-PCM-samples-in-a-wav-file-actually-represent/answer/Ian-Hendry-11
if you don't believe that it's correct.

Also translate 'float', it was not translated.
2019-10-04 19:18:47 +01:00
James Crook
85a3e9880c Bug 2052 - Remove lock file, even if read only
The line breaks in the second message are also changed.
They are not changed in the first message, as that message is already translated.
2019-10-04 11:31:23 +01:00
James Crook
3bce6f1c21 Raise splashscreen at start up. 2019-10-03 20:24:06 +01:00
James Crook
98f495a485 Bug 2052 - Mac: Lock file prevents launching Audacity
This ameliorates the problem, by prompting the user telling them the lock file
location.  It does not fully solve it, but should allow us to reduce the bug to P2.
2019-10-03 17:19:32 +01:00
Paul Chang
dec07d43e5 Update Chinese (TW) Translation 2019-10-03 14:53:44 +01:00
mkpoli
143caa3f57 Update Chinese (CW) Translation 2019-10-03 14:53:44 +01:00
Yuri Chornoivan
7c6baf806a Update Ukranian Translation 2019-10-03 14:53:44 +01:00
Alexander Kovalenko
a54024adb3 Update Russian Translation 2019-10-03 14:53:44 +01:00
Bruno Ramalhete
4ca274eda5 Update Portuguese Translation 2019-10-03 14:53:44 +01:00
Thomas De Rocker
9a0951b40a Update Dutch Translation 2019-10-03 14:53:44 +01:00
Hwanyong Lee
627111fff6 Update Korean Translation 2019-10-03 14:53:44 +01:00
Michele Locati
06a95b0ae4 Update Italian Translation 2019-10-03 14:53:44 +01:00