1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

12660 Commits

Author SHA1 Message Date
Paul Licameli
a9d555bf16 A status return check on ProjectFileIO::SaveProject 2020-12-06 20:50:31 -05:00
Paul Licameli
046ae403ba Remove inappropriate assertion...
... Errors reported by sqlite are not conditions that should be provably
impossible.
2020-12-06 15:16:49 -05:00
Paul Licameli
4e260389da Move AbbreviatePath to FileNames 2020-12-06 14:55:12 -05:00
Paul Licameli
f07fd5d8bc Export failure messages name the file, exactly as with FileException 2020-12-06 14:21:41 -05:00
Paul Licameli
d225d24092 Bug2602: Correct Windows case of IsOnFATFileSystem 2020-12-06 12:25:47 -05:00
Paul Licameli
c5e454e109 Move IsOnFATFileSystem to FileNames 2020-12-06 12:23:19 -05:00
Paul Licameli
0bd21e171c If app is inactive, don't change transport buttons for modifier keys 2020-12-05 15:12:30 -05:00
Paul Licameli
a675b5907f bug2437 complete fix: Sleep 100 ms at startup...
... The reported continuing failure to fix bug 2437 -- sometimes -- appears to
have been a timing problem.  I could observe it often with release builds but
not with debug.
2020-12-03 23:46:43 -05:00
Paul Licameli
58df1342c2 Bug1579 NOT fixed by this...
... but this may be a necessary piece of any fix that might be found.

See also recent commit c67842f525095f100aa662ff59be421545d8bfc4.

wxDF_UNICODETEXT replacing wxDF_TEXT was a necessary but not sufficient step to
fix a cut-copy-paste problem on Mac, and I suspect the same will be true here.

See also commits bbd369df1b3c5860ac1145f221c93972c9bac349 and
9036c001521883300c30c8e2d7ef6775dc00f918 for the commits that introduced this
code.

The partial fix they accomplished in 2.1.3 is no longer working, whether because
of wxWidgets changes, or macOS changes, or both.
2020-12-03 19:39:05 -05:00
Paul Licameli
f4f8194dc6 Bug2606: Import shouldn't be lossy or narrower than Quality pref 2020-12-03 19:20:33 -05:00
Paul Licameli
31b391737f Choice of format for imported tracks now in just one place...
... Doing the widening as needed to match Quality preference.

Fewer direct dependencies on QualityPrefs.h.

FLAC and OGG may import as float where before it was 24 bits; only 16 bits or
float.  This makes them behave consistently with Raw and PCM.
2020-12-03 19:19:30 -05:00
Paul Licameli
85eb3dbf46 Define sf_subtype_to_effective_format 2020-12-03 12:27:28 -05:00
Paul Licameli
7998012015 Comments and new synonym names in sampleFormat enumeration 2020-12-03 12:18:18 -05:00
Paul Licameli
d4f4241b57 Bug2607: Wave track sample format setting should persist 2020-12-03 12:08:21 -05:00
Paul Licameli
c67842f525 Bug2494: Label cut/copy/paste on Mac and the system clipboard...
... The fix also requires commit 58ad95e7981c9a2b116f318539c37889281baabe of
https://github.com/audacity/wxWidgets.git in the wxWidgets build
2020-12-02 17:50:39 -05:00
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