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

12472 Commits

Author SHA1 Message Date
Paul Licameli
c17b804750
Dont delete sample blocks prematurely (#648)
* Revert "AUP3: Don't delete sample blocks prematurely"

This reverts commit c1884349d595a2fb889c90f209ea4af3d1c70e1d.

* "Don't delete sample blocks prematurely" fixed otherwise...

... and very simply.

Problem was that, only for an interactive effect (like Bass and Treble), the
save point was created, rolled back, created again, then committed.

But (unlike with the non-savepoint commands, even if savepoint is outermost),
rolling back a savepoint really just rewinds it without removing it -- therefore
the second savepoint was inner, but the first (outer) was never committed, so
some changes failed to persist.

Solution:  add a commit after rollback of savepoint to implement destructor
of AutoCommitTransaction.

The reversion of c188434 also leaves AutoCommitTransaction as a better RAII
style operation.  Rollback changes by default -- keep changes only if
success is explicitly indicated.

* Rename AutoCommitTransaction as TransactionScope...

... More appropriately, since it's now the rollback that is automatic but
the commit that must be explicit
2020-08-28 15:38:38 -05:00
Paul Licameli
1bb34e703e
Bug2529: don't lose data when closing without saving on small drive (#650) 2020-08-28 13:03:35 -05:00
Paul Licameli
29f3361746
Graceful failure saving to thumb drive... (#649)
... If renaming of the file (to a place on a different device) fails,
recover correctly before giving the warning message
2020-08-28 11:19:37 -05:00
Paul Licameli
22c00fab03 Fix misspelled file name in comments and add Doxygen 2020-08-27 22:18:27 -04:00
Paul Licameli
7d359a6640 Bug2515: When WAV export fails to write file, give better message 2020-08-27 22:02:40 -04:00
Paul Licameli
70175acaf4 Fix infinite loop of error messages trying to draw corrupt project...
... As reported by Steve.

Don't throw exceptions when trying only to display a track and the samples
can't be found in the database.
2020-08-26 21:49:39 -04:00
Paul Licameli
2389b191f6 Bug2513: Disk exhaustion error message should be as was pre-Unitary 2020-08-26 16:56:03 -04:00
Paul Licameli
0c4514efb0 Avoid some unexpected recursions because of yields to event loop...
... See code comments.

Not proved to be a cause of data loss bugs, but they caused surprises when
trying to step in the debugger.
2020-08-26 16:01:54 -04:00
Paul Licameli
11e924a49b ClientData 2020-08-26 01:36:48 -04:00
Leland Lucius
407c83ebf0 AUP3: I think we've progressed enough to remove my abort() 2020-08-26 00:23:48 -05:00
Leland Lucius
0bbf1792fa AUP3: Don't molest project file when applying macros
Cliff reported that if you apply a macro to "Files" and you had
a "saved project" open at the time, you would get the "not saved
properly" dialog when you next open that "saved project".

This should correct it...
2020-08-26 00:06:19 -05:00
Paul Licameli
bbd893c891 audacity.dox generates complete graph information; added nograph.dox...
... All old contents of audacity.dox moved to audacity.dox.in;

audacity.dox includes it and changes some options, to be run in nightly updates
of web pages;

nograph.dox also includes it, and is now fit for local usage by the developer,
generating only the same information as audacity.dox before (in only half a
minute on my machine), but easily editable to turn on selected graphs.
2020-08-25 21:27:54 -04:00
Paul Licameli
b006ec60cc Change type alias names to improve Doxygen...
... Specifically the inheritance diagram showing where ClientData::Site is used
2020-08-25 14:31:06 -04:00
Paul Licameli
47588baffc Revert a piece of d420fde that miscompiles with MSVC 2020-08-25 10:10:07 -04:00
Paul Licameli
41ea189075 Doxygen commentary for subclasses of AudacityException 2020-08-25 10:06:08 -04:00
Paul Licameli
1119dde68a Doxygen commentary for AudacityException.h 2020-08-25 01:00:23 -04:00
Paul Licameli
cc08455453 Fix #include guard in WaveTrack.h 2020-08-24 12:24:01 -04:00
Paul Licameli
fffd32472f style change 2020-08-23 12:02:11 -04:00
Paul Licameli
c3403054c3 Fix dangling list iterator bug, detected by MSVC debug library 2020-08-23 11:47:10 -04:00
Paul Licameli
d420fdecf4 Much Doxygen commentary for Track.h...
... Comments and indentation changes only, with a small bit of code movement to
improve the sequence of items on the Doxygen page.

Comments some obscurities of template usage and of iterators (TrackIter and
TrackNodePointer).
2020-08-23 08:26:51 -04:00
Paul Licameli
372393f49e Rewrite comments about exception safety guarantees with Doxygen...
... Defining a new macro, which generates a special paragraph with links to a
new page describing the principles.
2020-08-22 23:07:28 -04:00
Paul Licameli
0e10a27172 Fix comments for WaveTrackFactory, remove friend 2020-08-22 21:20:00 -04:00
Paul Licameli
4ca3e7096f
Track factory cleanup (#646)
* Don't need TrackFactory to make LabelTrack

* Don't need TrackFactory to make NoteTrack

* Don't need TrackFactory to make TimeTrack, or ZoomInfo in the factory

* Remove some forward declarations

* Rename TrackFactory as WaveTrackFactory, move it out of Track.cpp
2020-08-22 18:44:49 -05:00
Paul Licameli
0f98522b5c Doxygen comments in generated theme header files 2020-08-22 11:28:05 -04:00
James Crook
f55b3f21cf Bug 2524 - ENH: Macros "OK" button is confusing - doesn't do "what it says on the tin"
Removed redundant OK button.
Also improved positioning of buttons.
Also fixed issue where canceling change appeared to not be respected.  (It was being respected, but display was not being refreshed)
2020-08-22 13:41:18 +01:00
James Crook
93c5525a36 Bug 1441 - Mac: Imported file names containing '/' change the '/' to ':'
This addresses only one part of the behaviour, and now disallows \ and / in export multiple on all platforms.
2020-08-21 15:06:23 +01:00
Paul Licameli
465a6876db More complete doxygen pages by including anonymous namespace contents 2020-08-20 13:22:22 -04:00
Leland Lucius
3cd04a5ebf Revert "Bug 2381 - Mac: Export to Opus (OggOpus) is not available on Mac - Opus import fails on Mac"
This reverts commit 743585fb4b3f75364aafa3a5713253d9f2c21bcb.
2020-08-19 05:54:41 -05:00
Leland Lucius
7de814ff2c Revert "Missed a few files..."
This reverts commit 8c2ac0482889615a56dd938088b09891f7262ff4.
2020-08-19 05:54:24 -05:00
Leland Lucius
8c2ac04828 Missed a few files... 2020-08-18 23:51:13 -05:00
Leland Lucius
743585fb4b Bug 2381 - Mac: Export to Opus (OggOpus) is not available on Mac - Opus import fails on Mac 2020-08-18 22:39:19 -05:00
SteveDaulton
25ddfc7bb4 Nyquist Prompt: Remove legacy code checkboox 2020-08-17 22:16:04 +01:00
James Crook
a278eff55b Bug 2295 - Comment command always succeeds
I had it set to always fail, with result that macro stopped at that point.
2020-08-17 11:22:20 +01:00
James Crook
894867d692 Bug 2295 - ENH: cannot add a comment in a Macro with Audacity
Comments can now be added using the Comment command.
2020-08-16 20:22:48 +01:00
Leland Lucius
542a9a8d98 [Bug 2522] In Macros, Record New Track and Play with a selection do not wait for completion. 2020-08-15 18:03:09 -05:00
Leland Lucius
9bfbf1570b Bug 2522 - In Macros, Record New Track and Play with a selection do not wait for completion. 2020-08-15 16:39:33 -05:00
SteveDaulton
f7acd6986d Bug 2518 - AUD-command cache is not updated on Audacity upgrade 2020-08-13 19:31:34 +01:00
Leland Lucius
2987896470 Bug 2516 - Windows: "SAVE" button in "Audio / MIDI Device Info" displays "OK" 2020-08-12 14:23:27 -05:00
Leland Lucius
69859eebe4 Play and record now wait in Macros if a regions exists. 2020-08-12 13:56:53 -05:00
Leland Lucius
030f92c40b AUP3: Fix condition 2020-08-12 11:38:54 -05:00
Leland Lucius
70fd77e2dc AUP3: Don't prompt user if in batch mode 2020-08-12 08:23:41 -05:00
Leland Lucius
17b4919a2a Remove old CleanSpeech macro commands 2020-08-12 08:12:46 -05:00
Leland Lucius
f43ad3f0e0 Fix missing OPUS files in import file dialog 2020-08-11 17:07:21 -05:00
Leland Lucius
6d08c600df Bail on any error when checking for valid MP3 frames 2020-08-11 10:10:51 -05:00
Leland Lucius
b0367049b9 Limit message output while macro tracing is enabled 2020-08-11 09:42:59 -05:00
Leland Lucius
7b8a977f15 Add ClearLog macro command and parameters to tracing 2020-08-11 09:06:15 -05:00
Leland Lucius
da75a7edde Fix build 2020-08-11 01:48:32 -05:00
Leland Lucius
b6eaf5623e Add "tracing" of macro commands
At this time it's really just a debugging aid for us. It should
make it easier for us to better understand timing of various
commands.

Tracing is enabled by setting the "/EnableMacroTracing" preference
to 1 and disabled by setting it to 0.

Since the tracing is written to the log, this also adds a "SaveLog"
command that takes a filename. It can be used from within the macro
being traced to preserve the log in case the script intended to
exit Audacity.
2020-08-11 00:14:56 -05:00
Leland Lucius
9d749fef14 AUP3: Fix macro path handling
Aside from the breakage I added to it during the AUP3 conversion,
there was several other issues discovered in regards to how the
export paths were being handled.
2020-08-10 17:48:59 -05:00
Olivier Humbert
5c719e8d65
Update French translation (#641)
* Update French translation

* a few typos fixes in the French translation
2020-08-10 14:56:27 +01:00