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

12633 Commits

Author SHA1 Message Date
Paul Licameli
a00fe789b9
More aup import review (#656)
* More format fixes on import: beware sequences with differing format...

... It could happen.  When collecting file information to be used in the
second pass, record the correct format for each.

Don't mistakenly use whatever was the format of the last read Sequence for all
files.

This only matters for the avoidance of unnecessary sample format conversions
when finally appending samples to tracks.  It won't affect the space ultimately
occupied in the database.

* Cautions against double throw in a finally block

* Fix some Doxygen in ImportAUP.cpp
2020-09-02 00:36:48 -05:00
Paul Licameli
d5a4ed74d2 Bug2538: Fix persistence of Sequence format in imported .aup ...
... which may be important if the user saved 16 bit for space efficiency.
Don't lose that efficiency.
2020-09-01 22:25:55 -04:00
Paul Licameli
a093f5b2cf Remove unused member 2020-09-01 13:36:41 -04:00
Paul Licameli
92d7ee38e5
Do orphan block checking differently... (#655)
... Don't have special knowledge of "blockid" in ProjectSerializer, which should
be very low-level.

Instead, we can deserialize the project first, and use the block ids collected
by the sample block factory since f137a1e.
2020-09-01 10:54:36 -05:00
Paul Licameli
1e3885730f
Aup import review (#654)
* Remove unused member

* I think you want to null the clip pointer when done with it?

* Simplify end tag handling

* Clear tracks in one place, but it may not matter...

... The file handle object is destroyed and not reused in any case

* Log messages can be English

* Let first error message override any mere warning; comments, assertion

* Remove unreachable code -- see the loop preceding it

* fix more unreachable code

* Correct unusual case of file names (is it used?)

* Re-use SFCall, in case we decide in future that the mutex does matter
2020-09-01 09:26:23 -05:00
Paul Licameli
77d0851a65 Remove class ImportXMLTagHandler...
... It became unused at d39590cf41e1e1eac02fc52d88a1ad018824f77b

And remove some other complications in ProjectFileManager that were used only
in it
2020-09-01 09:03:43 -04:00
Paul Licameli
0785a82e2b
bug2537 addendum: XML block attributes are redundant... (#653)
... with database columns, so stop writing them and save some space.

This won't break loading of existing .aup3 files.

This required a bug fix in a SQL command too!
2020-08-31 20:30:59 -05:00
Paul Licameli
f137a1ed3e
Bug2537: graph of sharing of block objects needs recreation on open (#652) 2020-08-31 19:30:47 -05:00
Paul Licameli
e5c548f76d Fix spelling in comments 2020-08-31 15:04:42 -04:00
Leland Lucius
d9047dfd25 [Bug 2533] New: Extreme space inefficiency importing silence from an AUP file 2020-08-30 21:21:45 -05:00
Paul Licameli
7294f7a8e0
Bug2532: should preserve sharing of sample blocks when importing AUP (#651) 2020-08-30 17:18:18 -05:00
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