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

474 Commits

Author SHA1 Message Date
Paul Licameli
50b384adae Separate files for PluginRegistrationDialog...
... so that PluginManager can avoid using GUI
2021-06-30 21:15:19 -04:00
Paul Licameli
04a0292d1d Simplify iterations over PluginManager; remove a friend 2021-06-30 21:15:19 -04:00
Paul Licameli
bb907fca48 "Menu Tree" doesn't need to translate 2021-06-11 17:44:42 -04:00
James Crook
404ad6ad8a Bug 2803 - Audacity unresponsive after 'Fit to Height'
a) Fixed root cause, which is conversion of a
negative integer to a large unsigned, leading to
a very tall track.
b) Improved mitigation (in projects that already
have over tall tracks) by setting a smaller minimum
for the allowed size.
2021-06-08 22:05:56 +01:00
Dmitry Vedenko
690772ccb0 Use ShowExceptionDialog when we want to show ErrorReportDialog 2021-06-08 08:08:26 -07:00
Paul Licameli
d28554189d Add alpha-build-only crash-me buttons, for testing of crash reporting 2021-06-08 02:23:53 -07: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
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
8c04ed3990 Settings objects used in AudioIOBase...
... Giving many examples of use of Settings objects.  Many other rewrites like
this should be made to eliminate as many direct uses of gPrefs as we can.

Don't rely on long distance coincidences of literals for paths or defaults.

For each of several paths like /AudioIO/Host, all uses of that path are replaced
with use of a global Settings object defined in one place, in AudioIOBase.  The
object also gives the benefit of caching the last-read or written value.

Other users of those preferences must then include "AudioIOBase.h" to make the
dependency explicit at compile time.

It should be checked that no other mentions of those paths remain in the source,
and that there was no unintended change in default values.

This also inverts dependency of AudioIOBase on RecordingPrefs, which is GUI for
changing some of these settings.
2021-05-17 08:46:08 -04:00
Paul Licameli
9a66255013 Move AudioIOBase::mPlaybackSchedule up into AudioIoCallback 2021-05-14 16:25:41 -04:00
Paul Licameli
cf948ece52 Eliminate duplications of string literal "Nyquist Prompt" 2021-05-14 13:08:02 -04:00
Paul Licameli
c5ebc396eb Audacity.h has shrunk to nothing, now remove it! 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
Paul Licameli
c781a108e3 Move compile-time testing of crash report support out of Experimental.h 2021-04-27 12:40:06 -04:00
James Crook
28a634c5e2 Bug 2671 - ENH: "Show track name as overlay" cannot be turned on from main menus 2021-04-24 12:21:25 +01:00
James Crook
9e3c98202f Bug 2734 - Apply macro may not create the macro-output folder in the source directory
Now macro-output is placed in your default documents folder (if no
path specified) or in the path you specify (if a path was specified).
2021-04-09 19:05:19 +01:00
James Crook
f5a69354e0 Bug 2701 - Progress dialog interferes with scripting.
Interference mattered for "PlayLooped".
No interference existed for an empty selection, a play until stopped.
2021-03-21 10:56:51 +00:00
James Crook
c08131b78f Bug 2689 - Ctrl+R to repeat an effect may show the dialog 2021-03-08 09:51:46 +00:00
Leland Lucius
5f68102dc5 Revert "Bug 2547 - Shift + Click may select incorrect tracks"
This reverts commit 0c234359afa2e7a9cb6ccd3a431444d691beede7.

Will need to find another way and have discussion as pointed out
in bug #2547.
2021-02-14 03:43:17 -06:00
Leland Lucius
598eb39484 Bug 2353 - Import RAW into empty project does not zoom to fit 2021-02-12 18:56:41 -06:00
Leland Lucius
0c234359af Bug 2547 - Shift + Click may select incorrect tracks 2021-02-12 10:12:08 -06:00
Leland Lucius
9445393876 Bug 2527 - Reset Configuration does not reset Project rate or selection timers 2021-02-11 15:01:35 -06:00
Paul Licameli
5c80f6f19f Specification of Preferences menu item simplified 2021-02-07 11:55:14 -05:00
Paul Licameli
5fda4b959f Some command flags can be defined nearer their sole points of use 2021-02-03 17:05:27 -05:00
James Crook
67dff35a12 Bug 2640 - Plot Spectrum and Contrast analyzers are not "Repeatable"
Completing the update by John Colket.  The plan always was that
these new 'repeat' entries were optional commands bindable to
keyboard shortcuts by advanced users.

Users visiting the menus can re-select the item they want.
For these menu users it would be confusing/overload to list
these repeat commands in the menu.  Repeat last effect in the Effects
menu is more important.  It is there in the menu to signal to
users that there is the Ctrl+R key binding for it.
2021-02-03 11:40:21 +00:00
JohnColket
a3d9f41fb4
Bug 2582 - Enh: Repeat last Process, Part 2 (#734) 2021-02-03 11:02:49 +00:00
Paul Licameli
15313a27f7 Define virtual Track::PasteInto to simplfy Paste...
... Also making EditMenus not dependent on TimeTrack
2021-02-02 15:01:51 -05:00
Paul Licameli
8543d2dd30 Also skip TimeTrack in some other commands with the flag 2021-02-02 14:56:52 -05:00
Paul Licameli
2842fa7d56 Don't cut or copy TimeTrack...
... Which was the intention in the flags enabling the commands
2021-02-02 14:44:28 -05:00
Paul Licameli
badb1643fa New Track virtual eliminates a track_cast in CommonCommandFlags...
... Also a better name for one of the command flags

This allows removal of special mention of TimeTrack
2021-02-02 14:42:21 -05:00
Leland Lucius
5aa5b0df6d Bug 2435 - Some menu commands greyed out when playback paused 2021-01-27 16:05:45 -06:00
Paul Licameli
35e9afe34d Remove unnecessary parts of fix for bug 2501...
... Don't need to put the project in a strange state where Undo commands are
ignored until labels are de-selected
2021-01-26 04:23:45 -05:00
Leland Lucius
a03a6abb4b Bug 2501 - Undo for label edit results in a blank label 2021-01-24 23:27:50 -06:00
luzpaz
7a3bdcf3f2
Fix typos (user facing and non-user facing) (#727)
Found via `codespell v2.1.dev0`  
`codespell -q 3 -S *.po,./lib-src -L parm,parms,toke`
2021-01-24 09:46:08 +00:00
Paul Licameli
0df8fbcc74 Bug2583: Re-placement of splits after paste 2021-01-23 14:38:36 -05:00
Leland Lucius
e8b2602473 Bug 2616 - Labelled Audio Cut and Delete disabled by Sync-Lock 2021-01-20 12:32:09 -06:00
Leland Lucius
235cc242e4 Bug 2616 - Labelled Audio Cut and Delete disabled by Sync-Lock 2021-01-20 10:46:30 -06:00
Leland Lucius
26d8fcad66 Bug 2616 - Labelled Audio Cut and Delete disabled by Sync-Lock 2021-01-19 15:31:06 -06:00
Paul Licameli
6b42c92651 Small correction to commit 549dacf 2021-01-16 13:32:59 -05:00
Paul Licameli
43574553fc Break dependency cycle introduced at 50f3321...
... This only cuts and pastes some functions from FileNames to another new file
and namespace, and changes namespace qualifiers where they are called.

The cycle resulted because of the need to include widgets/ErrorDialog.h
2021-01-16 13:28:37 -05:00
Leland Lucius
086cacad76 Bug 2616 - Labelled Audio Cut and Delete disabled by Sync-Lock
This is only for information gathering. I don't believe that
simply allowing the use of these two menu items is sufficient.
I believe more work will need to be done, but I wanted to get
it in the QA hands.
2021-01-16 02:26:35 -06:00
JohnColket
549dacf054
2582 enh repeat last process (#722)
* Enhancement: Add Repeat Last Process

* add include UndoManager.h
2021-01-15 14:22:38 +00:00
freddii
534359de6c
Fix minor typos (#720)
Co-authored-by: freddii <https://freddii@github.com>
2021-01-12 11:56:09 +00:00
freddii
2593a84d56 Fix some spelling mistakes. 2021-01-12 09:55:31 +00:00
Paul Licameli
4871584cb3 Mixer::WarpOptions constructor for common case 2020-11-30 13:42:35 -05:00
James Crook
ad85755101 Bug 2600 - Compact project followed by undo restores the last saved state
Uncompacted projects use up 50% or so more space than they could.
The 'compact' feature as currently implemented is confusing, and does
not merit inclusion given the lowish saving.  So featured disabled/removed.
2020-11-27 15:18:05 +00:00
Paul Licameli
caa312ab7b Remove some unneeded #includes and forward declarations 2020-11-20 13:47:47 -05:00
Paul Licameli
490271f259 Define UndoManager::VisitStates 2020-11-18 17:07:00 -05:00
Paul Licameli
d49a888b98 Remove some unnecessary #includes 2020-11-18 17:06:12 -05:00
Paul Licameli
716139494d Move details of OnCompact into ProjectFileManager...
... so it can use mLastSavedTracks
2020-11-17 17:10:43 -05:00