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

12595 Commits

Author SHA1 Message Date
Paul Licameli
b6ce29d234 Bug2605: Don't leave orphans in original project after save-as 2020-12-02 13:05:22 -05:00
Paul Licameli
47bdf27f2d Revert "Bug2605: Save-as should not cause original to repoen with warnings..."
This reverts commit 742134caaa5813b6220a71d021a0279f45c0e7fe.
2020-12-02 12:39:35 -05:00
Paul Licameli
742134caaa Bug2605: Save-as should not cause original to repoen with warnings...
... Problem was that before abandoning the connection to the original path,
compaction was done only sometimes, according to the criterion of estimated
%20 space savings at least.  But this could cause the project to reopen with
orphan blocks in it, which were detected and reported as an improper save.

The easy solution is to force compaction always in this case.

Direct save does not have this problem because what would otherwise be orphaned
blocks are directly deleted from the database when undo states are destroyed
and sample blocks become unreferenced.  So compacting only sometimes does not
cause orphan blocks on reopening.
2020-12-02 00:41:07 -05:00
Paul Licameli
105558c7bf Bug2567: Macros using cut and paste should work on multiple files 2020-12-01 23:03:23 -05:00
Paul Licameli
e343bf556b Bug2437: Finder "Open with", Audacity already running, should work 2020-12-01 21:44:46 -05:00
Paul Licameli
2cce830601 Split AudacityApp::OnInit() into two parts 2020-12-01 21:23:19 -05:00
Paul Licameli
596032c42f Lift call to CreateSingleInstanceChecker out of InitTempDir 2020-12-01 21:17:12 -05:00
Paul Licameli
55ad1b43b8 More members of Mixer are const 2020-11-30 19:03:55 -05:00
Paul Licameli
c9a9f0f906 Remove always true argument of ExportPlugin::CreateMixer 2020-11-30 16:31:01 -05:00
Paul Licameli
4871584cb3 Mixer::WarpOptions constructor for common case 2020-11-30 13:42:35 -05:00
Paul Licameli
9d6dd45973 More use of constSamplePtr instead of samplePtr 2020-11-29 19:45:18 -05:00
Paul Licameli
82e8532ee5 Make one argument non-defaulted 2020-11-29 14:17:04 -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
3189d05f87 Bug2593: Play-at-speed button should work after import 2020-11-26 17:16:50 -05:00
Paul Licameli
8c8e4cdb7d Add debug.c to libid3tag sources in CMakeLists.txt 2020-11-26 17:01:24 -05:00
Paul Licameli
f5fd860430 Bug2591, more mitigation: TransactionScopes mean fewer checkpoints...
... and probably less contention with the checkpoint thread during recording,
and probably less total drop-out time when stress-testing recording with high
sample rates or slow external devices or both.

And another transaction scope for the post-processing of dropouts may reduce the
total time spent there.
2020-11-25 13:50:09 -05:00
Paul Licameli
1efebb7cdc Bug2600 residual: cause update of menu item text after compact 2020-11-25 13:43:04 -05:00
Paul Licameli
ebb6e5de1c Bug2600: Should rename current undo state after compacting 2020-11-25 13:31:04 -05:00
Paul Licameli
6944ba564c Use events to break dependency cycle introduced at 3978e8c 2020-11-25 12:24:21 -05:00
Paul Licameli
7a1ca42109 Bugs2581, 2544: Don't corrupt if can't paste because clips can't move 2020-11-25 11:44:04 -05:00
Paul Licameli
2fe0a07901 Some null checks 2020-11-25 11:07:16 -05:00
Paul Licameli
262dbabbf5 Bug2591 mitigation, maybe: coalesce touching dropout intervals...
... The post-processing of an excessive number of small, touching intervals
was one cause of apparent hangs when stopping recording to a slow external
device and using a high recording sample rate, in my own trials.
2020-11-24 22:28:49 -05:00
Paul Licameli
6a10177404 Bug2594: Fix Save Backup...
... It broke at 16b249a
2020-11-24 16:30:10 -05:00
Paul Licameli
7e1e339f72 Bug2599: -wal and -shm of discarded temp projects should clean up 2020-11-24 14:38:58 -05:00
Paul Licameli
0d5b9753bc Don't open a file just to query its length 2020-11-24 14:22:29 -05:00
Paul Licameli
8e28a257a5 Bug2588: Amend the fix at 3c76cea to be safe during append-record 2020-11-24 13:35:42 -05:00
Paul Licameli
5ebfe4670c Bug2596: Error dialogs opening unreadable project should not be blank 2020-11-24 12:43:00 -05:00
Paul Licameli
54359fbefd Fix a comment 2020-11-24 12:03:57 -05:00
Paul Licameli
e00f8da5d5 Bug2595: Don't make spurious disk-full errors while recording...
... The error that the checkpoint thread got was only SQLITE_BUSY, while the
main thread was simultaneously doing reads only for redrawing the screen.

Do some retrials in case of SQLITE_BUSY.
2020-11-23 20:17:05 -05:00
Paul Licameli
045bedfe04 Simplify two GuardedCalls into one 2020-11-23 16:47:38 -05:00
Paul Licameli
e08fe884e3 Correct status message for estimated recording time onto FAT system 2020-11-23 16:08:55 -05:00
Paul Licameli
a628a3efbd A function detecting when a file is hosted on a FAT system 2020-11-23 16:05:34 -05:00
Paul Licameli
2d6db518fa Prevent dangling pointers to meters...
... This stops a crash that might occur when the checkpoint thread causes
ProjectAudioManager::Stop() to execute but the project is in the process of
closing.
2020-11-22 19:58:00 -05:00
Paul Licameli
7fcd90e351 Fix assertions on close, again, better 2020-11-22 16:47:10 -05:00
Paul Licameli
e3d6c37163 whitespace 2020-11-22 15:45:30 -05:00
Paul Licameli
8cb6749741 Bug2592: should clean old temp directory at exit after prefs change 2020-11-22 15:43:24 -05:00
Paul Licameli
3e0120be05 Bug2550 residual: also move -shm file if present...
... Also much other extra care in the handling of -shm and -wal files
2020-11-22 14:32:42 -05:00
Paul Licameli
b32ce8ab21 Fix assertions on project close about mis-estimated block count 2020-11-22 12:09:13 -05:00
Paul Licameli
98d8603931 Bug2550: Save-as must move -wal together with .aup3, if -wal exists 2020-11-21 16:39:31 -05:00
Paul Licameli
791dbea1af Bug2109 residual: apply fix also in case of import of MIDI...
... Muting the new track, in case any solo track already existed.
2020-11-21 15:56:20 -05:00
Paul Licameli
003d1c23a3 Bug2590: Compact Project should free up more space...
... but not always as much, as before the part of the fix for Bug2579, which is
at 7edbad3cd131b115ead713482308508da8f172bc

The last saved undo state and the current state must (both) be saved (if
different).
2020-11-21 13:55:46 -05:00
Paul Licameli
ccffaca0fa Fix possible crash updating Undo History window during compacting 2020-11-21 13:53:38 -05:00
Paul Licameli
caa312ab7b Remove some unneeded #includes and forward declarations 2020-11-20 13:47:47 -05:00
Paul Licameli
a46118dc2a Fix uninitialized members of ToolManager 2020-11-20 13:30:52 -05:00
Paul Licameli
0203205cf6 Remove ProjectsPrefs.* ...
... the class became unused, never constructed, at commit
cbf1bb558e094e24cbb54c3bbd2bd45a1abbfb2a
2020-11-20 13:28:05 -05:00
Paul Licameli
f82b23d9d4 Register MakeTrackShifter properly 2020-11-20 13:15:01 -05:00
Paul Licameli
6050edb3ca Bug2598: Envelope edit not dependend on visibility of channels...
... And other rewrites.  Don't use a cache of wave clip X coordinates computed
during drawing.
2020-11-19 22:29:21 -05:00
Paul Licameli
3c76cea190 Bug2588: Click to join clips shouldn't depend on channel visibility 2020-11-19 21:32:59 -05:00
Paul Licameli
0945b6b734 Bug2536: crash on Mac sometimes playing back with resampling...
... Intermittent crash, depending on some accidents of memory page allocations,
known to happen sometimes when playing a 44100 Hz track at 32000 Hz; the
strange story is in the code comments
2020-11-19 18:23:15 -05:00
Paul Licameli
6dea5434a6 Bug2586: .aup with envelopes in wave tracks should import correctly 2020-11-19 16:48:41 -05:00