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
Paul Licameli
14c300c672
Bug2542: Discard button of auto recovery should work with UP
2020-11-19 15:18:01 -05:00
Paul Licameli
a9cbd953f0
Define InvisibleTemporaryProject
2020-11-18 23:51:01 -05:00
Paul Licameli
93b098b8d2
Make Undo history window update properly when you compact the project
2020-11-18 20:50:40 -05:00
Paul Licameli
0f1c19e97e
Bug2570 residual: Also handle the case of last saved state in redo
2020-11-18 20:37:11 -05:00
Paul Licameli
7edbad3cd1
Bug2570 residual: Compact should not change last saved state...
...
... So that if you save, edit, compact, close without saving, then reopen,
you recover the saved state as expected, not the compacted state.
Implications:
Do not push an undo state for compaction. Discard redo states instead.
Do not purge undo states after the last saved. The database still needs them.
So we might reclaim less space than before.
2020-11-18 19:21:26 -05:00
Paul Licameli
16b249ab9f
ProjectFileIO fns now take multiple pointers to const TrackLists
2020-11-18 17:30:55 -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
47b3b798c9
Fix comments
2020-11-18 16:57:33 -05:00
Paul Licameli
4b3a4a1f4b
Warning about returning reference to temporary is now a build breaker
2020-11-18 14:07:16 -05:00
Paul Licameli
0277e00402
Bug2569: Alias block files should import correctly into .aup3
2020-11-17 23:19:06 -05:00
Paul Licameli
a8bc89e4c4
Bug2570: Save-compressed or -lossless files from 2.x should import
2020-11-17 21:37:54 -05:00
Paul Licameli
e9d72ed6df
Change handling of added tracks in ImportAup...
...
... Add them to the project, not a temporary array; revoke the addition if
there is a failure.
Preliminary for fixing bug 2570.
2020-11-17 21:14:04 -05:00
Paul Licameli
8ac1cb75aa
Bug2579: Don't corrupt project after compact the exit without save...
...
... also may improve compaction by clearing mLastSavedTracks first
2020-11-17 17:21:33 -05:00
Paul Licameli
ea76b7c9f7
Don't clear clipboard unnecessarily in ProjectFileManager::Compact()
2020-11-17 17:13:41 -05:00
Paul Licameli
716139494d
Move details of OnCompact into ProjectFileManager...
...
... so it can use mLastSavedTracks
2020-11-17 17:10:43 -05:00
Paul Licameli
4cb4b1ab6d
Fix signed/unsigned comparison
2020-11-17 14:13:44 -05:00
Steve Daulton
c3a47d0a75
Bug 2585 - Incorrect help file address for Loudness Normalization
2020-11-17 17:35:50 +00:00