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

12626 Commits

Author SHA1 Message Date
Paul Licameli
5057e2360a fix a comment 2020-12-20 03:50:52 -05:00
Steve Daulton
1041bb0e21
Update cmake_build.txt
.bash_profile has been replaced by  .zprofile by default in recent macOS updates.
2020-12-17 15:32:19 +00:00
Paul Licameli
4cb9bb19fd Bug2603: Should give proper message for failed backup onto FAT drive...
... The error message eliminated here describes what should be ruled out by
the loop before this line, which already checks that no previous file of the
chosen name exists.

So just give the generic write failure message.
2020-12-09 18:00:41 -05:00
Paul Licameli
bc7066a20e More uniformity of file write error messages 2020-12-09 17:41:22 -05:00
Paul Licameli
57134d93d6 Bug2437: Call finishLaunching() before sleeping 2020-12-09 17:34:57 -05:00
Paul Licameli
d8cd8041f1 Fix grammatical error in user visible message 2020-12-09 15:34:15 -05:00
Paul Licameli
64b066f655 Bug2437: possible further help...
... The 100ms sleep added at at a675b5907f5fa7bba2537c249a84f73cabe5937c was
meant to let NS framework events arrive on another thread and be detected by
wxWidgets.  But there are still reports that it is not reliable enough.

This other fix may be sufficient alone, making the sleep unnecessary.  But it
is harmless so we will leave it there.
2020-12-09 15:28:09 -05:00
Paul Licameli
ab15efebf5 Add Audacity.mm to the Mac build 2020-12-09 15:18:03 -05:00
Paul Licameli
50b4039657 Remove an #include 2020-12-09 14:48:55 -05:00
Paul Licameli
b1c8cd6479 Bug2602: correct record capacity estimate for Win+FAT filesystem...
... effectively reverting commit 0d5b9753bca7d15380160ba5b6de3231979ca050
2020-12-08 13:18:26 -05:00
Paul Licameli
67db388b25 Fix comments 2020-12-07 17:22:13 -05:00
Paul Licameli
98d7218e31 Preliminaries for fixing Bug2550 residuals 2020-12-06 23:23:09 -05:00
Paul Licameli
aa0b33dc8f Detect failure to reconnect to temp project when first saving it 2020-12-06 23:20:44 -05:00
Paul Licameli
41eb66fccf Where CurConn() is used, don't assume it is non-null 2020-12-06 21:31:06 -05:00
Paul Licameli
900bf44219 ProjectFileIO::CloseProject does not assert that project was open 2020-12-06 21:25:34 -05:00
Paul Licameli
38b169ab7e Guarantee postcondition of ProjectFileIO::OpenConnection() 2020-12-06 21:18:48 -05:00
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